# merges and git log --stat

4 messages from 2010-05-06 to 2010-05-06. Participants: SZEDER Gábor, Junio C Hamano.
Thread: https://gitlist.dev/t/23719

## SZEDER Gábor, 2010-05-06 19:26

Subject: merges and git log --stat
Message-ID: <20100506192616.GS4599@neumann>
URL: https://gitlist.dev/e/20100506192616.GS4599%40neumann

```
Hi,

I've just noticed that 'git log --stat' does not print the diffstat
for merge commits.  Is this intentional?

Thanks,
Gábor

```

## Junio C Hamano, 2010-05-06 20:13

Subject: Re: merges and git log --stat
Message-ID: <7vsk64hjq4.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vsk64hjq4.fsf%40alter.siamese.dyndns.org
In-Reply-To: <20100506192616.GS4599@neumann>

```
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, 2010-05-06 20:36

Subject: Re: merges and git log --stat
Message-ID: <20100506203639.GV4599@neumann>
URL: https://gitlist.dev/e/20100506203639.GV4599%40neumann
In-Reply-To: <7vsk64hjq4.fsf@alter.siamese.dyndns.org>

```
That was fast, thank you.

On Thu, May 06, 2010 at 01:13:23PM -0700, Junio C Hamano wrote:
> 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, 2010-05-06 23:58

Subject: Re: merges and git log --stat
Message-ID: <7vhbmkh9ai.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vhbmkh9ai.fsf%40alter.siamese.dyndns.org
In-Reply-To: <20100506203639.GV4599@neumann>

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

```
