Re: get_maintainer.pl and .mailmap entries with more than 2 addresses
From: Junio C Hamano <hidden>
Date: 2016-08-02 18:18:49
Also in:
lkml
Joe Perches [off-list ref] writes:
Hello Florian. There is at least an oddity with get_maintainer handling of a .mailmap entry form. For instance: Mauro's .mailmap entry is: Mauro Carvalho Chehab [off-list ref] [off-list ref] [off-list ref] [off-list ref] [off-list ref] [off-list ref] [off-list ref] Is this a valid form?
I do not think so, according to "git shortlog --help" (the canonical
source of the document is Documentation/mailmap.txt, but shortlog
doc includes it). Here is the relevant bits.
In the simple form, each line in the file consists of the canonical
real name of an author, whitespace, and an email address used in the
commit (enclosed by '<' and '>') to map to the name. For example:
--
Proper Name [off-list ref]
--
The more complex forms are:
--
[off-list ref] [off-list ref]
--
which allows mailmap to replace only the email part of a commit, and:
--
Proper Name [off-list ref] [off-list ref]
--
which allows mailmap to replace both the name and the email of a
commit matching the specified commit email address, and:
--
Proper Name [off-list ref] Commit Name [off-list ref]
--
which allows mailmap to replace both the name and the email of a
commit matching both the specified commit name and email address.