shortlog: implement `--group=author` in terms of `--group=<format>`
commit9c10d4ff2401cd5908e4e874c403fadebb2ac0b3
authorTaylor Blau <me@ttaylorr.com>
Mon, 24 Oct 2022 18:55:44 +0000 (24 14:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Oct 2022 21:48:05 +0000 (24 14:48 -0700)
treedd28672d0538e5b12928c984973bcc8e4dc7c42d
parent10538e2a627b8ab14f977c868f2975a2acb4ed4d
shortlog: implement `--group=author` in terms of `--group=<format>`

Instead of handling SHORTLOG_GROUP_AUTHOR separately, reimplement it as
a special case of the new `--group=<format>` mode, where the author mode
is a shorthand for `--group='%aN <%aE>'.

Note that we still need to keep the SHORTLOG_GROUP_AUTHOR enum since it
has a different meaning in `read_from_stdin()`, where it is still used
for a different purpose.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/shortlog.c