]> git.99rst.org Git - git.git/commit
shortlog: implement `--group=author` in terms of `--group=<format>`
authorTaylor Blau <redacted>
Mon, 24 Oct 2022 18:55:44 +0000 (14:55 -0400)
committerJunio C Hamano <redacted>
Mon, 24 Oct 2022 21:48:05 +0000 (14:48 -0700)
commit9c10d4ff2401cd5908e4e874c403fadebb2ac0b3
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/shortlog.c
git clone https://git.99rst.org/PROJECT