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

Re: git log --stat FILE

From
Marcus Comstedt <marcus@mc.pp.se>
Date
Aug 8, 2010, 13:33 UTC
Message-ID
<yf9ocddut4h.fsf@chiyo.mc.pp.se>
In-Reply-To
<201008081508.53732.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
> To me (and probably many others), a "diff" is something that describe
> differences between two versions (compares two version).

Jakub, there is no need for you to explain or justify why this is obvious to you. I have no problem accepting that at face value. I'm simply trying to explain why this was not obvious to me, in the hope of aiding any effort in improving the documentation. After all, writing documentation for something you feel is obvious is very difficult. But if you feel that the documentation is fine as it is, that is also your privilege.

> Note that 'GNU diff' (and other "/usr/bin/diff") supports three
> output formats:  ed based, context and unified formats.

Indeed, and all those qualify as "diffs" in my mindset. I would however not consider the output of "diff -q" as a true "diff", and naturally not the output of "diff --version".

  // Marcus
Previous: Jakub NarebskiNext: Michael J Gruber
Message 8 of 11 in “git log --stat FILE”
  1. Marcus ComstedtAug 8, 2010
  2. Jakub NarebskiAug 8, 2010
  3. Lars HjemliAug 8, 2010
  4. Marcus ComstedtAug 8, 2010
  5. Jakub NarebskiAug 8, 2010
  6. Marcus ComstedtAug 8, 2010
  7. Jakub NarebskiAug 8, 2010
  8. Marcus ComstedtAug 8, 2010
  9. Documentation/git-log: Clarify --full-diffMichael J Gruber, Aug 8, 2010
  10. Matthieu MoyAug 9, 2010
  11. Junio C HamanoAug 9, 2010

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.