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

Re: Log message printout cleanups

From
Linus Torvalds <torvalds@osdl.org>
Date
Apr 18, 2006, 00:57 UTC
Message-ID
<Pine.LNX.4.64.0604171751540.3701@g5.osdl.org>
In-Reply-To
<7v7j5nk9bf.fsf@assigned-by-dhcp.cox.net>
On Mon, 17 Apr 2006, Junio C Hamano wrote:
Show 5 quoted lines
> 
> These days I find myself running "git log --stat" more often
> than "git whatchanged"; it looks so much nicer ;-).
> 
> Thanks for a job well done.
There's actually something _wrong_ with "git log --stat". 

What happens is that "git log" will enable "rev.combine_merges" by default, and that means that together with "--stat" ignoring merges by default, it will _instead_ generate a "--cc" diff for that merge.

I think that behaviour was introduced by the "--stat" code by Dscho, and not by my rewrite.

You can see it on the kernel archive on commit 88dd9c16, for example:
	git log --stat 88dd9c16
will make it pretty obvious what I'm talking about.

I still haven't looked a lot at what the diffstat code does, so I don't know what the obvious fix is. Maybe setting "ignore_merges". And maybe just making the diffstat thing do the right thing for merges.

I'll leave that up to you, I'm getting pretty fed up with "git log" right now ;)

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 18 in “Fixes for option parsing”
  1. Linus TorvaldsApr 16, 2006
  2. Junio C HamanoApr 17, 2006
  3. Linus TorvaldsApr 17, 2006
  4. Linus TorvaldsApr 17, 2006
  5. Junio C HamanoApr 17, 2006
  6. Linus TorvaldsApr 17, 2006
  7. Log message printout cleanupsLinus Torvalds, Apr 17, 2006
  8. Junio C HamanoApr 17, 2006
  9. Linus TorvaldsApr 17, 2006
  10. Junio C HamanoApr 18, 2006
  11. Junio C HamanoApr 18, 2006
  12. Linus TorvaldsApr 18, 2006
  13. Junio C HamanoApr 18, 2006
  14. Linus TorvaldsApr 18, 2006
  15. Linus TorvaldsApr 18, 2006
  16. Junio C HamanoApr 18, 2006
  17. diff --stat: make sure to set recursive.Junio C Hamano, Apr 18, 2006
  18. Linus TorvaldsApr 18, 2006

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.