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

Re: Combined diff format documentation

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 25, 2006, 23:45 UTC
Message-ID
<ehost8$go7$1@sea.gmane.org>
In-Reply-To
<7vejswkoi4.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 10 quoted lines
>>    BTW. it is not mentioned in documentation that git diff uses hunk section
>>    indicator, and what regexp/expression it uses (and is it configurable).
>>    Not described in documentation.
> 
> If you mean by "hunk section indicator" the output similar to
> GNU diff -p option, I think it is not worth mentioning and we
> are not ready to mention it yet (we have not etched the
> expression in stone).  Nobody jumped up and down to say it needs
> to be configurable, so it is left undocumented more or less
> deliberately.

By the way, I have just checked that combined diff format doesn't have (for unknown reason) "which section" indicator in chunk header. Compare $ git diff-tree -p -m fec9ebf16c948bcb4a8b88d0173ee63584bcde76 and $ git diff-tree -p -c fec9ebf16c948bcb4a8b88d0173ee63584bcde76 (this is the source of example combined diff format in diff-formats.txt which I've found via $ git rev-list --parents HEAD -- describe.c | grep " .* " i.e. finding all merges which included changes to describe.c; there are only two such commits).

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Jakub Narebski
Message 6 of 10 in “Combined diff format documentation”
  1. Jakub NarebskiOct 25, 2006
  2. Junio C HamanoOct 25, 2006
  3. Jakub NarebskiOct 25, 2006
  4. Junio C HamanoOct 25, 2006
  5. Junio C HamanoOct 25, 2006
  6. Jakub NarebskiOct 25, 2006
  7. diff-format.txt: Combined diff format documentation supplementJakub Narebski, Oct 26, 2006
  8. Junio C HamanoOct 26, 2006
  9. Junio C HamanoOct 26, 2006
  10. Junio C HamanoOct 26, 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.