Re: Creating CVS-style patch headers with git-diff
- From
Tomas Carnecky <tom@dbservice.com>
- Date
- Jan 8, 2011, 15:51 UTC
- Message-ID
- <4D288804.2050204@dbservice.com>
- In-Reply-To
- <AANLkTi=_YdTsvFboQAj447SUtcxrVhM18QkvSVdpvdMJ@mail.gmail.com>
On 1/8/11 4:35 PM, David Chanters wrote:
> Sorry about that, that's poor wording on my part. I don't mean "CVS > won't barf" -- I meant that GNU Patch can still apply the patch > without the meta-data referencing git still. I think though this > "--no-prefix" option might just do it.
Update your gnu patch. Never versions know how to handle the git specific metadata (gnu patch simply ignores it).
And the a/, b/ prefix is *not* git specific. Pretty much all versions of a patch program know how to deal with that, you just need to use -p1 on the commandline.
tom