Announce: use the trailers for contributor attribution
Junio C Hamano committed
Feb 18, 2021 at 15:41 UTC
436e33a72681904ea8955139742a720e3fac4b69
1 file changed
+16
-2
Announce
+16
-2
@@ -44,8 +44,22 @@ esac
44
45
vername=$(echo "$vername" | tr "-" ".")
46
47
-git log --use-mailmap --format='%aN,' "$previous" | sort -u >"$tmpbase.prev"
48
-git log --use-mailmap --format='%aN,' "$previous..$commit" | sort -u >"$tmpbase.this"
47
+people () {
48
+ git shortlog -s --no-merges \
49
+ --group=author \
50
+ --group=trailer:co-authored-by \
51
+ --group=trailer:reviewed-by \
52
+ --group=trailer:mentored-by \
53
+ --group=trailer:helped-by \
54
+ --group=trailer:reported-by \
55
+ "$@" |
56
+ sed -e 's/^[ 0-9]*[ ]//' -e 's/$/,/' |
57
+ sort -u
58
+}
59
+
60
+people "$previous" >"$tmpbase.prev"
61
+people "$previous..$commit" >"$tmpbase.this"
62
+
63
comm -12 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.old"
64
comm -13 "$tmpbase.prev" "$tmpbase.this" >"$tmpbase.new"
65