custom kernel, how to revert patch

Josh Boyer jwboyer at fedoraproject.org
Wed Oct 9 15:28:50 UTC 2013


On Wed, Oct 9, 2013 at 11:25 AM, Chris Murphy <lists at colorremedies.com> wrote:
> I'm trying to track down a btrfs regression and need to revert a ~10 month
> old patch using 3.12.0-rc4 as the basis.
>
> 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 can call ApplyPatch with -R.  e.g.

ApplyPatch old-btrfs-commit.patch -R

Or you could generate a revert commit from git and just apply that.

(BTW, questions like this are better suited to the Fedora kernel list.)

josh


More information about the devel mailing list