Re: Forward-port a patch using git
- From
- Spelic <spelic@shiftmail.org>
- Date
- Dec 1, 2010, 18:11 UTC
- Message-ID
- <4CF68FCB.2030301@shiftmail.org>
- In-Reply-To
- <4CF66BAA.1010203@shiftmail.org>
On 12/01/2010 04:37 PM, Spelic wrote:
Show 8 quoted lines
> Hi all > I have patches (xyz.patch files) which apply cleanly to kernel 2.6.36 > and 2.6.36.1 and do not apply cleanly on 2.6.37-rc4 (I mean they do > apply but with massive offsets...) > I would like to forward-port them to 2.6.37-rc4, i.e. create > equivalent patch files that would apply cleanly on 2.6.37-rc4 with > zero offsets. >
I found it myself, sorry for having asked.
It was:
checkout v2.6.36 apply 1 patch commit apply 1 patch commit ... rebase v2.6.37-rc4 git format-patch -o <destdir> -numpatches