From: Junio C Hamano Date: Thu, 18 Feb 2021 23:41:17 +0000 (-0800) Subject: Announce: use the trailers for contributor attribution X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=436e33a72681904ea8955139742a720e3fac4b69;p=thirdparty%2Fgit.git Announce: use the trailers for contributor attribution --- diff --git a/Announce b/Announce index 491516b61a..d6ec20ca55 100755 --- 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"