git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: merges and git log --stat

From
SZEDER Gábor <szeder@ira.uka.de>
Date
May 6, 2010, 20:36 UTC
Message-ID
<20100506203639.GV4599@neumann>
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:
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

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “merges and git log --stat”
  1. SZEDER GáborMay 6, 2010
  2. Junio C HamanoMay 6, 2010
  3. SZEDER GáborMay 6, 2010
  4. Junio C HamanoMay 6, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.