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

when is "git diff" output suitable for patch?

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jul 13, 2006, 21:21 UTC
Message-ID
<20060713212127.GA30770@fieldses.org>

I assume the -C and -M, -c, and -cc options all result in diff output that can't be correctly applied by "patch" any more? (Would a patch to the git-diff-files documentation warning about this be helpful?)

Someone I'm working with is having trouble applying patches that they created with a simple "git diff". The patches in question have some "copy from/copy to" headers. Should that every happen with just a plain "git diff"? Is this a bug in their version of git? (They're on 1.2.4).

--b.
Next: Junio C Hamano
Message 1 of 5 in “when is "git diff" output suitable for patch?”
  1. J. Bruce FieldsJul 13, 2006
  2. Junio C HamanoJul 13, 2006
  3. J. Bruce FieldsJul 13, 2006
  4. Junio C HamanoJul 13, 2006
  5. J. Bruce FieldsJul 13, 2006

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.