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

Output from git diff

From
David Kågedal <davidk@lysator.liu.se>
Date
Jul 29, 2009, 17:20 UTC
Message-ID
<873a8fflt2.fsf@krank.kagedal.org>
In-Reply-To
<87hbwxaolw.fsf@krank.kagedal.org>

Here is another diff output question. The updated documentation in diff-format.txt still claims that the output from the diff commands has this format:

:100644 100644 bcd1234... 0123456... M file0

This is true for "git diff --raw", but diff-tree and friends print full 40-char hashes.

I can get diff-tree to use abbreviated hashes with --abbrev, but how do I tell diff to stop abbreviating?

And what should the documentation really say?
-- 
David Kågedal
Previous: Junio C HamanoNext: Pat Notz
Message 3 of 8 in “Output from git diff-tree (documentation)”
  1. David KågedalJul 27, 2009
  2. Junio C HamanoJul 27, 2009
  3. Output from git diffDavid Kågedal, Jul 29, 2009
  4. Pat NotzJul 29, 2009
  5. Junio C HamanoJul 29, 2009
  6. Junio C HamanoJul 28, 2009
  7. David KågedalJul 29, 2009
  8. Junio C HamanoJul 30, 2009

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.