shortlog: de-duplicate trailer values
authorJeff King <redacted>
Sun, 27 Sep 2020 08:40:07 +0000 (04:40 -0400)
committerJunio C Hamano <redacted>
Sun, 27 Sep 2020 19:21:05 +0000 (12:21 -0700)
commitf17b0b99bf2dc2fcd74544ce35d058e558e6b056
tree9bdcbc31e0f5d80caaa399b0ec1a5e32444b5d13
parent47beb37bc60b690e83b19aa7ff646255fb643ad9
shortlog: de-duplicate trailer values

The current documentation is vague about what happens with
--group=trailer:signed-off-by when we see a commit with:

Signed-off-by: One
Signed-off-by: Two
Signed-off-by: One
We clearly should credit both "One" and "Two", but should "One" get
credited twice? The current code does so, but mostly because that was
the easiest thing to do. It's probably more useful to count each commit
at most once. This will become especially important when we allow
values from multiple sources in a future patch.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-shortlog.txt
builtin/shortlog.c
t/t4201-shortlog.sh
git clone https://git.99rst.org/PROJECT