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

Re: Output from git diff

From
Pat Notz <patnotz@gmail.com>
Date
Jul 29, 2009, 17:29 UTC
Message-ID
<1cd1989b0907291029r2efd78br3506ded03dedf438@mail.gmail.com>
In-Reply-To
<873a8fflt2.fsf@krank.kagedal.org>
On Wed, Jul 29, 2009 at 11:20 AM, David Kågedal<davidk@lysator.liu.se> wrote:
Show 11 quoted lines
> 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?

Probably not the answer you *really* want but 'git diff --raw --abbrev=40' will give you the full sha1

Show 11 quoted lines
>
> And what should the documentation really say?
>
> --
> David Kågedal
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Previous: David KågedalNext: Junio C Hamano
Message 4 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.