threads / discuss / 23719

merges and git log --stat

Subject: merges and git log --stat

## tl;dr

4 messages between May 6, 2010 and May 6, 2010.

replies: 3people: 2as markdown or json

Junio C Hamano· May 6, 2010, 20:13 UTC · re: SZEDER Gábor · lore

Re: merges and git log --stat

SZEDER Gábor <szeder@ira.uka.de> writes:
> I've just noticed that 'git log --stat' does not print the diffstat
> for merge commits.  Is this intentional?

It's very much designed so. You cannot clearly define "diff from which parent you would want to see".

SZEDER Gábor· May 6, 2010, 20:36 UTC · re: Junio C Hamano · lore

Re: merges and git log --stat

That was fast, thank you.
On Thu, May 06, 2010 at 01:13:23PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> SZEDER Gábor <szeder@ira.uka.de> writes:
> 
> > I've just noticed that 'git log --stat' does not print the diffstat
> > for merge commits.  Is this intentional?
> 
> It's very much designed so.  You cannot clearly define "diff from which
> parent you would want to see".

I see. Perhaps it would make sense to show the diffstat from the point of view of the first parent, but maybe I'm biased by my current use case. Anyway, it seems that I can easily get what I need with a bit of scripting, so it's not a major issue.

Best, Gábor

Junio C Hamano· May 6, 2010, 23:58 UTC · re: SZEDER Gábor · lore

Re: merges and git log --stat

SZEDER Gábor <szeder@ira.uka.de> writes:
> ..  Anyway, it seems that I can easily get what I need with a
> bit of scripting, so it's not a major issue.

Yes, you would need to script it if you count adding "--first-parent -m" on the command line as "scripting" ;-)

	$ git log --stat --first-parent -m

← back to recent threads