Junio C Hamano <[email protected]> writes: > Stefan Beller <[email protected]> writes: > >> git shortlog -sne >> 1 A <[email protected]> >> 1 A <[email protected]> > > This is coming from mailmap.c::add_mapping() that downcases the > e-mail address. > > [email protected] is mapped to [email protected] because of this > downcasing, while "A <[email protected]>" 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 <[email protected]> in the input is mangled using the entry for <[email protected]> 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

