threads / discuss / 32069

git log to use .mailmap by default?

Subject: git log to use .mailmap by default?

## tl;dr

2 messages between Nov 11, 2012 and Nov 12, 2012.

replies: 1people: 2as markdown or json

Jason Timrod· Nov 11, 2012, 12:13 UTC · lore
Hi,
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?
TIA!
Jason
Jeff King· Nov 12, 2012, 23:18 UTC · re: Jason Timrod · lore

Re: git log to use .mailmap by default?

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

← back to recent threads