custom kernel, how to revert patch

Eric Sandeen sandeen at redhat.com
Wed Oct 9 15:28:44 UTC 2013


On 10/9/13 10:25 AM, Chris Murphy wrote:
> This http://fedoraproject.org/wiki/Building_a_custom_kernel has
> ApplyPatch examples in the spec file, which works fine. Is there an
> inverse command? Or do I need to do it manually with patch -p0 -R <
> ?

You could generate the reverse patch with:

$ git show 1234abcd > patch_to_revert.patch
$ interdiff patch_to_revert.patch /dev/null > revert-patch.patch

and then ApplyPatch that one.

(though you'll have to work out whether it applies cleanly, 10 months
is a long time in btrfs-time...)

-Eric


More information about the devel mailing list