shortlog: parse trailer idents
authorJeff King <peff@peff.net>
Sun, 27 Sep 2020 08:40:11 +0000 (04:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 27 Sep 2020 19:21:05 +0000 (12:21 -0700)
commit56d5dde7526e725a9e590f32fe38ce6b3391bc36
treefa9c3bd197b2c82945b9659c6fac17b665edad24
parent87abb96222b076a1a9aa9c92f799107141feeca4
shortlog: parse trailer idents

Trailers don't necessarily contain name/email identity values, so
shortlog has so far treated them as opaque strings. However, since many
trailers do contain identities, it's useful to treat them as such when
they can be parsed. That lets "-e" work as usual, as well as mailmap.

When they can't be parsed, we'll continue with the old behavior of
treating them as a single string (there's no new test for that here,
since the existing tests cover a trailer like this).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-shortlog.txt
builtin/shortlog.c
t/t4201-shortlog.sh