Subject: Re: get_maintainer.pl and .mailmap entries with more than 2 addresses

From: Junio C Hamano <[email-masked]>
Date: Tue, 02 Aug 2016 11:16:26 -0700

Joe Perches <[email-masked]> 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 <[email-masked]> <[email-masked]> <[email-masked]> <[email-masked]> <[email-masked]> <[email-masked]> <[email-masked]>
>
> 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 <[email-masked]>
    --

    The more complex forms are:
    --
            <[email-masked]> <[email-masked]>
    --
    which allows mailmap to replace only the email part of a commit, and:
    --
            Proper Name <[email-masked]> <[email-masked]>
    --
    which allows mailmap to replace both the name and the email of a
    commit matching the specified commit email address, and:
    --
            Proper Name <[email-masked]> Commit Name <[email-masked]>
    --
    which allows mailmap to replace both the name and the email of a
    commit matching both the specified commit name and email address.