diff options
author | Robin Jarry <robin@jarry.cc> | 2022-12-07 15:16:02 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-12-07 15:16:02 +0100 |
commit | 2937830491b5adedf79c8c218afb2c80b17c019a (patch) | |
tree | 13e0efe12a607266364b25b8e52d6c775f09c61f | |
parent | cbcabfafaab20eaffad642f20151e890161efddc (diff) | |
download | aerc-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-x | contrib/git-stats.sh | 14 |
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:]]+$//' |