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

Re: [PATCH v2] diff: Only count lines in show_shortstats

From
Alexander Strasser <eclipse7@gmx.net>
Date
Jun 15, 2012, 21:19 UTC
Message-ID
<20120615211941.GA26486@akuma>
In-Reply-To
<7vr4tg9xhr.fsf@alter.siamese.dyndns.org>
Hi,
Junio C Hamano wrote:
Show 13 quoted lines
> Alexander Strasser <eclipse7@gmx.net> writes:
> 
> > Do not mix byte and line counts. Binary files have byte counts;
> > skip them when accumulating line insertions/deletions.
> >
> > The regression was introduced in e18872b.
> >
> > Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
> > ---
> 
> Administrivia.
> 
> Please do not use Mail-Followup-To: header to deflect direct
  I did not know about that mail header. I am not sure about the
exact ramifications but I hope I told my MUA to stop inserting
that header behind my back.
[...]
Show 9 quoted lines
> > +test_expect_success 'diff --shortstat output for binary file change' '
> > +	echo " 4 files changed, 2 insertions(+), 2 deletions(-)" >expected &&
> > +	git diff --shortstat >current &&
> > +	test_i18ncmp expected current
> > +'
> > +
> 
> It would also have been interesting if we can see the result for a
> diff that involves _only_ binary files, no?
  Seems like an interesting test to me. I will add it and send as v3
in a moment.
[...]
  Alexander
Previous: Junio C Hamano
Message 3 of 3 in “diff: Only count lines in show_shortstats”
  1. diff: Only count lines in show_shortstatsAlexander Strasser, Jun 15, 2012
  2. Junio C HamanoJun 15, 2012
  3. Alexander StrasserJun 15, 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.