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

Re: [PATCH] diff: Fixes shortstat number of files

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 26, 2012, 03:28 UTC
Message-ID
<7vhaodxctq.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1353533210-29684-1-git-send-email-apelisse@gmail.com>
Antoine Pelisse <apelisse@gmail.com> writes:
> Subject: Re: [PATCH] diff: Fixes shortstat number of files

Please replace "Fixes" with "Fix at least (because our log messages are written as if a patch is giving an order to the codebase, iow, in imperative mood), but we would prefer to see a concrete description on what is fixed, when we can. And in this case, I think we can, perhaps:

    diff: do not count unmerged paths twice in --shortstat/--numstat
or something.
> There is a discrepancy between the last line of `git diff --stat`
> and `git diff --shortstat` in case of a merge.
> The unmerged files are actually counted twice, thus doubling the
> value of "file changed".

I think the current 'master' and upward is broken with respect to this; I am consistently getting two entries for unmerged paths across --stat, --shortstat and --numstat options (iow, not just shortstat and numstat but the '--stat' seems to be broken as well).

Thanks.
Previous: Antoine PelisseNext: Antoine Pelisse
Message 2 of 4 in “diff: Fixes shortstat number of files”
  1. diff: Fixes shortstat number of filesAntoine Pelisse, Nov 21, 2012
  2. Junio C HamanoNov 26, 2012
  3. Antoine PelisseNov 26, 2012
  4. Junio C HamanoNov 27, 2012

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.