git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Tomas Carnecky <tom@dbservice.com>
Date
Jan 8, 2011, 15:26 UTC
Message-ID
<4D288211.3040806@dbservice.com>
In-Reply-To
<AANLkTinx9qM=fjH53UodY0G870Ne3wpFiFEgEGNXxOY7@mail.gmail.com>
  On 1/8/11 2:43 PM, David Chanters wrote:
> 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
I don't know, you tell me. I've never used 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.

gnu patch most likely doesn't use the index line and ignores all the git specific additions to the diff format.

tom
Previous: Andreas SchwabNext: Robin Rosenberg
Message 8 of 9 in “Creating CVS-style patch headers with git-diff”
  1. David ChantersJan 8, 2011
  2. Tomas CarneckyJan 8, 2011
  3. David ChantersJan 8, 2011
  4. Andreas SchwabJan 8, 2011
  5. David ChantersJan 8, 2011
  6. Tomas CarneckyJan 8, 2011
  7. Andreas SchwabJan 8, 2011
  8. Tomas CarneckyJan 8, 2011
  9. Robin RosenbergJan 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.