Junio C Hamano <gits...@pobox.com> writes:

> Stefan Beller <stefanbel...@googlemail.com> writes:
>
>>      git shortlog -sne
>>               1  A <a...@example.org>
>>               1  A <a...@example.org>
>
> This is coming from mailmap.c::add_mapping() that downcases the
> e-mail address.
>
> changed_em...@example.org is mapped to a...@example.org because of this
> downcasing, while "A <a...@example.org>" does not have any entry for it
> in the .mailmap file, so it is given back as-is.  Hence we see two
> distinct entries.

I think it is wrong for the parser to lose information by
downcasing.

It is perfectly fine to do the comparison case insensitively, to
allow <changed_em...@example.org> in the input is mangled using the
entry for <changed_em...@example.org> in the .mailmap file; it is
not fine to downcase the parsed result, especially the side that is
used as the "rewritten result" (i.e. the tokens earlier on the line),
as that would mean mangling the output.

Let me see if I can quickly whip up a fix.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to