git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Creating CVS-style patch headers with git-diff
@ 2011-01-08 11:23 David Chanters
  2011-01-08 11:49 ` Tomas Carnecky
  2011-01-08 16:35 ` Robin Rosenberg
  0 siblings, 2 replies; 9+ messages in thread
From: David Chanters @ 2011-01-08 11:23 UTC (permalink / raw)
  To: git; +Cc: David Chanters

Hi all,

[ Please Cc me on any replies as I am not subscribed to this list, thanks. ]

I am wondering if I can get git diff to create "CVS-style patches"?
What do I mean by that?  Well, whenever I do:

git diff

I get patch headers in the form:

diff --git a/foo.c b/foo.c
index 57b9527..a2d947b 100644
--- a/foo.c
+++ b/foo.c

This is fine for git, but if I then want to import the same patch into
CVS I have to either edit the patch, or mess around with the -p option
to patch(1).

I have seen that git-diff has options to change the a/ b/ headers --
can anyone shed some light on this as to what I can do?

The reason I am wanting to do this, is rather than importing
changesets from git -> CVS, I have a git clone outright of a CVS
project (which I update with git-cvsimport) and often want to import
diffs to CVS directly after I'm done, and then I publish my topic
branches in Git when I'm done.  The key thing though is to be able to
apply patches from git -- and I am hoping the easiest thing to do is
to try and get git-diff to change the headers.

Any help greatly received.

Kindly,
David

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-01-08 16:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-08 11:23 Creating CVS-style patch headers with git-diff David Chanters
2011-01-08 11:49 ` Tomas Carnecky
2011-01-08 13:43   ` David Chanters
2011-01-08 15:21     ` Andreas Schwab
2011-01-08 15:35       ` David Chanters
2011-01-08 15:51         ` Tomas Carnecky
2011-01-08 16:17         ` Andreas Schwab
2011-01-08 15:26     ` Tomas Carnecky
2011-01-08 16:35 ` Robin Rosenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).