]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Announce: use the trailers for contributor attribution
authorJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 23:41:17 +0000 (15:41 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Feb 2021 23:41:17 +0000 (15:41 -0800)
Announce

index 491516b61a85bb6e1948f76b38cab96e37abfa19..d6ec20ca55b54d0c6533c0cc0fcd8841d4aa22e8 100755 (executable)
--- a/Announce
+++ b/Announce
@@ -44,8 +44,22 @@ esac
 
 vername=$(echo "$vername" | tr "-" ".")
 
-git log --use-mailmap --format='%aN,' "$previous" | sort -u >"$tmpbase.prev"
-git log --use-mailmap --format='%aN,' "$previous..$commit" | sort -u >"$tmpbase.this"
+people () {
+       git shortlog -s --no-merges \
+               --group=author \
+               --group=trailer:co-authored-by \
+               --group=trailer:reviewed-by \
+               --group=trailer:mentored-by \
+               --group=trailer:helped-by \
+               --group=trailer:reported-by \
+               "$@" |
+       sed -e 's/^[    0-9]*[  ]//' -e 's/$/,/' |
+       sort -u
+}
+
+people "$previous" >"$tmpbase.prev"
+people "$previous..$commit" >"$tmpbase.this"
+
 comm -12 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.old"
 comm -13 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.new"