gitstats icon indicating copy to clipboard operation
gitstats copied to clipboard

Support for mailmap

Open hkdobrev opened this issue 6 years ago • 2 comments

Git has awesome .mailmap configuration allowing you to describe which emails are the same user. There's more documentation here: https://git-scm.com/docs/git-check-mailmap

Example report from gitstats:

█                                      589 | [email protected]
███                                   2882 | [email protected]
                                         1 | [email protected]

With this .mailmap document:

# Mapping historically incorrect Git author names and emails
John Doe <[email protected]> <[email protected]> <[email protected]>
<[email protected]> <[email protected]>

git would actually use only the left aliases and combine results in git log, git shortlog and others.

It would be great if gitstats could do the same using git plumbing commands and make use of the .mailmap configuration in the repository.

Thanks!

hkdobrev avatar Dec 19 '17 09:12 hkdobrev

You serious? This is how you open issues?

evilsocket avatar Dec 19 '17 09:12 evilsocket

@evilsocket I'm sorry, I've posted with the keyboard by accident before writing a description. Could you please re-open it if you think it's worth considering? Thanks!

hkdobrev avatar Dec 19 '17 09:12 hkdobrev