Re: custom kernel, how to revert patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux