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

Re: diff without num-stat

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 23, 2010, 09:21 UTC
Message-ID
<7vwrvyzfr3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4BD156F8.5090307@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 14 quoted lines
> Eli Barzilay venit, vidit, dixit 22.04.2010 21:02:
>> `git diff' has a `--numstat' flag, but is there any way to *avoid* the
>> numstat?  (I'm using `--stat' but want to void the summary line, and
>> I'd like to avoid piping it to `head'.)
>
> So, what DO you want? Except for the different formatting:
>
> --stat output minus --numstat output == summary line
>
> where "summary line" is something like
>
> 5 files changed, 5974 insertions(+), 0 deletions(-)
>
> Do you want to (a)void the numstat or the summary?
Summary is "create mode ..." etc. and you can already enable/disable it.

That "N files +M/-N lines in total" is _not_ a summary; it is an integral part of ascii-graphical --stat output, which is supposed to produce output like "git diff -p | diffstat". We won't split it out of --stat without a very good reason, there doesn't seem to be an option to "diffstat" for such a thing, so...

Previous: Michael J GruberNext: Eli Barzilay
Message 3 of 6 in “diff without num-stat”
  1. Eli BarzilayApr 22, 2010
  2. Michael J GruberApr 23, 2010
  3. Junio C HamanoApr 23, 2010
  4. Eli BarzilayApr 23, 2010
  5. Junio C HamanoApr 23, 2010
  6. Eli BarzilayApr 23, 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.