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

Re: Diff --stat for files that differ only in whitespace

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 31, 2020, 17:32 UTC
Message-ID
<xmqq8sez4mk7.fsf@gitster.c.googlers.com>
In-Reply-To
<CAOjrSZtQPQ8Xxuz+7SGykR8Q-gFDEZANSE5yQASqKjpbUAq_5Q@mail.gmail.com>
Matt Rogers <mattr94@gmail.com> writes:
Show 7 quoted lines
> some-file.txt | 0
>
> This is easy enough to parse through when it's a small number of files but when
> there is ~1000 files with only maybe 1500 insertions/deletions showing it's not
> really useful to me to see a list of those 1000 files, if there was a way to
> sort by number of insertion/deletions or filter out the files that had 0
> effective changes that would solve my problem.

Whether you are interested in whitespace or not, if you are processing the diff output with scripts, --numstat (not --stat) may be simpler to work with.

Previous: Matt RogersNext: Jeff King
Message 2 of 7 in “Diff --stat for files that differ only in whitespace”
  1. Matt RogersJul 31, 2020
  2. Junio C HamanoJul 31, 2020
  3. Jeff KingJul 31, 2020
  4. Matt RogersJul 31, 2020
  5. Jeff KingJul 31, 2020
  6. Junio C HamanoJul 31, 2020
  7. Matt RogersJul 31, 2020

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.