From 2937830491b5adedf79c8c218afb2c80b17c019a Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 7 Dec 2022 15:16:02 +0100 Subject: git-stats: add reviewer stats Process shortlog stats for Acked-by, Reviewed-by and Tested-by trailers. Signed-off-by: Robin Jarry --- contrib/git-stats.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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:]]+$//' -- cgit