git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Strasser <eclipse7@gmx.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org,
	"Zbigniew Jędrzejewski-Szmek" <zbyszek@in.waw.pl>,
	mj@ucw.cz
Subject: Re: [PATCH v2] diff: Only count lines in show_shortstats
Date: Fri, 15 Jun 2012 23:19:41 +0200	[thread overview]
Message-ID: <20120615211941.GA26486@akuma> (raw)
In-Reply-To: <7vr4tg9xhr.fsf@alter.siamese.dyndns.org>

Hi,

Junio C Hamano wrote:
> 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.

[...]
> > +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

      reply	other threads:[~2012-06-15 21:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15 19:02 [PATCH v2] diff: Only count lines in show_shortstats Alexander Strasser
2012-06-15 19:38 ` Junio C Hamano
2012-06-15 21:19   ` Alexander Strasser [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120615211941.GA26486@akuma \
    --to=eclipse7@gmx.net \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=mj@ucw.cz \
    --cc=zbyszek@in.waw.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).