Re: diff without num-stat

Previous thread: [PATCH 2/2] fix git-gui russian translation typos by Serge Ziryukin on Thursday, April 22, 2010 - 3:04 pm. (1 message)

Next thread: core.ignorecase = true support for .gitignore, status, ls-files, and add by Joshua Jensen on Thursday, April 22, 2010 - 7:26 pm. (2 messages)
From: Eli Barzilay
Date: Thursday, April 22, 2010 - 12:02 pm

`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!
--

From: Michael J Gruber
Date: Friday, April 23, 2010 - 1:14 am

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

From: Junio C Hamano
Date: Friday, April 23, 2010 - 2:21 am

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






--

From: Eli Barzilay
Date: Friday, April 23, 2010 - 10:14 am

An option that avoids that summary line.



Right -- I'm asking about the above numstat summary line, which seems

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

From: Junio C Hamano
Date: Friday, April 23, 2010 - 10:47 am

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.

--

From: Eli Barzilay
Date: Friday, April 23, 2010 - 12:45 pm

(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!
--

Previous thread: [PATCH 2/2] fix git-gui russian translation typos by Serge Ziryukin on Thursday, April 22, 2010 - 3:04 pm. (1 message)

Next thread: core.ignorecase = true support for .gitignore, status, ls-files, and add by Joshua Jensen on Thursday, April 22, 2010 - 7:26 pm. (2 messages)