Re: Creating CVS-style patch headers with git-diff

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

 



Hi Tomas,

On 8 January 2011 11:49, Tomas Carnecky <tom@xxxxxxxxxxxxx> wrote:
> What exactly do you need to change in the patch? Remove the index line? The
> '--git' string? Remove or change the a/, b/ prefix?

Well, any one of those goals, really.  I just want to generate a patch
that CVS won't barf on -- what that means if not needing to use the
"-p" option to patch because git outputs a/ b/ prefix lines.  Your
"--no-prefix" option does that much, which might be enough.

I did read, I think on this list, that the GNU Patch program
interprets these "diff --git" lines?  What exactly are they for, do
you know?  I mean, even if I just did:

git diff --no-prefix

Would the presense of the other meta-data, such as the "diff --git"
line as well as the "Index" line cause any problems when applying this
patch in CVS (I suppose now, my question doesn't have to apply to CVS
at all, more likely it will apply to any file sets)?  I am not sure
how GNU Patch uses this meta information, and I assume "git diff" adds
it for a good reason.

I hope this all makes sense?

David
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]