git log to use .mailmap by default?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

git log to use .mailmap by default?

Jason Timrod
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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: git log to use .mailmap by default?

Jeff King
On Sun, Nov 11, 2012 at 04:13:19AM -0800, Jason Timrod wrote:

> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html