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

Re: git log to use .mailmap by default?

From
Jeff King <peff@peff.net>
Date
Nov 12, 2012, 23:18 UTC
Message-ID
<20121112231815.GE10531@sigill.intra.peff.net>
In-Reply-To
<1352635999.79618.YahooMailNeo@web160306.mail.bf1.yahoo.com>
On Sun, Nov 11, 2012 at 04:13:19AM -0800, Jason Timrod wrote:
Show 9 quoted lines
> I note that when defining a .mailmap file, that it's honoured by
> git-shotlog(1) by default, but for git-log(1) I have to define an
> entirely new --pretty= formatting option to use it.
> 
> Why is this?  Why doesn't git-log honour this by default like
> git-shortlog does?
> 
> Would there be a way of making .mailmap be the default without needing
> a pretty option each time to redefine the default?

I think it's mostly hysterical raisins. Mailmap grew as a shortlog feature, and then only later became available via custom format specifiers like "%aN", in git-blame, etc. And nobody ever updated the stock formats.

It would make sense to me to add an option to do so, and probably to turn it on by default for normal human-consumed formats, but probably not for "--pretty=raw".

-Peff
Previous: Jason Timrod
Message 2 of 2 in “git log to use .mailmap by default?”
  1. Jason TimrodNov 11, 2012
  2. Jeff KingNov 12, 2012

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.