[neomutt-devel] git mailmaps
Richard Russon
rich at flatcap.org
Mon Jun 5 17:41:42 CEST 2017
Many of the contributors to NeoMutt have mutilple email addresses.
Some haven't set their git credentials correctly.
You can fix yours NOW:
git config --global user.name "Mona Lisa"
git config --global user.email "email at example.com"
To tidy up all the existing commits, there's git's mailmap feature.
It looks up the correct names and emails in .mailmap, giving you a
pleasing git log/shortlog output:
https://github.com/neomutt/neomutt/blob/master/.mailmap
Show all the commits between releases 2017-05-26 and 2017-06-02
git shortlog -sn neomutt-20170526..neomutt-20170602
20 Richard Russon
18 Kevin McCarthy
3 Zero King
2 Pietro Cerutti
1 Elimar Riesebieter
1 Roger Cornelius
1 Tamotsu Takahashi
I've just committed two alternate versions to the management repo.
https://github.com/neomutt/management
To use them by default, edit your .gitconfig
[mailmap]
# file = ~/management/git/mailmap-name-nick
# file = ~/management/git/mailmap-nick
"mailmap-name-nick" looks like:
20 Richard Russon (@flatcap)
18 UPSTREAM Kevin McCarthy
3 Zero King (@l2dy)
2 Pietro Cerutti (@gahr)
1 Elimar Riesebieter (@riesebie)
1 UPSTREAM Roger Cornelius
1 UPSTREAM Tamotsu Takahashi
"mailmap-nick" looks like:
20 UPSTREAM
20 flatcap
3 l2dy
2 gahr
1 riesebie
Rich / FlatCap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 854 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20170605/57a66726/attachment.sig>
More information about the neomutt-devel
mailing list