aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-12-07 15:16:02 +0100
committerRobin Jarry <robin@jarry.cc>2022-12-07 15:16:02 +0100
commit2937830491b5adedf79c8c218afb2c80b17c019a (patch)
tree13e0efe12a607266364b25b8e52d6c775f09c61f
parentcbcabfafaab20eaffad642f20151e890161efddc (diff)
downloadaerc-2937830491b5adedf79c8c218afb2c80b17c019a.tar.gz
git-stats: add reviewer stats
Process shortlog stats for Acked-by, Reviewed-by and Tested-by trailers. Signed-off-by: Robin Jarry <robin@jarry.cc>
-rwxr-xr-xcontrib/git-stats.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/git-stats.sh b/contrib/git-stats.sh
index 64a40402..2ee1d61d 100755
--- a/contrib/git-stats.sh
+++ b/contrib/git-stats.sh
@@ -22,3 +22,17 @@ while read -r commits author; do
done |
column -t -s ';' -N "$columns" -R "${columns#*,}" |
sed -r 's/[[:space:]]+$//'
+
+echo
+
+columns="Reviewer/Tester,Commits"
+
+git shortlog -sn \
+ --group=trailer:acked-by \
+ --group=trailer:tested-by \
+ --group=trailer:reviewed-by "$@" |
+while read -r commits author; do
+ printf '%s;%s\n' "$author" "$commits"
+done |
+column -t -s ';' -N "$columns" -R "${columns#*,}" |
+sed -r 's/[[:space:]]+$//'