git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* diff without num-stat
@ 2010-04-22 19:02 Eli Barzilay
  2010-04-23  8:14 ` Michael J Gruber
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Barzilay @ 2010-04-22 19:02 UTC (permalink / raw)
  To: git

`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'.)
-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: diff without num-stat
  2010-04-22 19:02 diff without num-stat Eli Barzilay
@ 2010-04-23  8:14 ` Michael J Gruber
  2010-04-23  9:21   ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Michael J Gruber @ 2010-04-23  8:14 UTC (permalink / raw)
  To: Eli Barzilay; +Cc: git

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?

Michael

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: diff without num-stat
  2010-04-23  8:14 ` Michael J Gruber
@ 2010-04-23  9:21   ` Junio C Hamano
  2010-04-23 17:14     ` Eli Barzilay
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2010-04-23  9:21 UTC (permalink / raw)
  To: Michael J Gruber; +Cc: Eli Barzilay, git

Michael J Gruber <git@drmicha.warpmail.net> writes:

> 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...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: diff without num-stat
  2010-04-23  9:21   ` Junio C Hamano
@ 2010-04-23 17:14     ` Eli Barzilay
  2010-04-23 17:47       ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Barzilay @ 2010-04-23 17:14 UTC (permalink / raw)
  To: Junio C Hamano, Michael J Gruber; +Cc: git

On Apr 23, Michael J Gruber wrote:
> 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?
> [...]
> where "summary line" is something like
> 
> 5 files changed, 5974 insertions(+), 0 deletions(-)

An option that avoids that summary line.


On Apr 23, Junio C Hamano wrote:
> 
> Summary is "create mode ..." etc. and you can already enable/disable it.

Right -- I'm asking about the above numstat summary line, which seems
to always be included with `--stat'.


> 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...

Well, the reason is to have an easy-to-glance-over summary of changes
for push notification emails.  I didn't realize that the intention of
--stat was to be completely compatible with `diffstat'.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: diff without num-stat
  2010-04-23 17:14     ` Eli Barzilay
@ 2010-04-23 17:47       ` Junio C Hamano
  2010-04-23 19:45         ` Eli Barzilay
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2010-04-23 17:47 UTC (permalink / raw)
  To: Eli Barzilay; +Cc: Michael J Gruber, git

Eli Barzilay <eli@barzilay.org> writes:

> Well, the reason is to have an easy-to-glance-over summary of changes
> for push notification emails.  I didn't realize that the intention of
> --stat was to be completely compatible with `diffstat'.

I think you have it somewhat backwards.

Being the same as normal diffstat output that people are familiar with,
the output makes it "an easy-to-glance-over summary of changes" whereever
it is used, be it in a notification e-mail or from interactive command
output.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: diff without num-stat
  2010-04-23 17:47       ` Junio C Hamano
@ 2010-04-23 19:45         ` Eli Barzilay
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Barzilay @ 2010-04-23 19:45 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Michael J Gruber, git

On Apr 23, Junio C Hamano wrote:
> Eli Barzilay <eli@barzilay.org> writes:
> 
> > Well, the reason is to have an easy-to-glance-over summary of
> > changes for push notification emails.  I didn't realize that the
> > intention of --stat was to be completely compatible with
> > `diffstat'.
> 
> I think you have it somewhat backwards.
> 
> Being the same as normal diffstat output that people are familiar with,
> the output makes it "an easy-to-glance-over summary of changes" whereever
> it is used, be it in a notification e-mail or from interactive command
> output.

(That's true only if the intended audience of these notifications are
people who are familiar with diffstat output.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-23 19:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22 19:02 diff without num-stat Eli Barzilay
2010-04-23  8:14 ` Michael J Gruber
2010-04-23  9:21   ` Junio C Hamano
2010-04-23 17:14     ` Eli Barzilay
2010-04-23 17:47       ` Junio C Hamano
2010-04-23 19:45         ` Eli Barzilay

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).