From 1e3ce85d043f34cb65f5e0f6b09c62464e57402a Mon Sep 17 00:00:00 2001 From: fdai7451 Date: Mon, 16 Jan 2023 23:06:00 +0100 Subject: [PATCH] chore: add user commits to count commit script --- count-commits.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/count-commits.sh b/count-commits.sh index ee0657c..1997abb 100755 --- a/count-commits.sh +++ b/count-commits.sh @@ -7,3 +7,6 @@ if [[ $total_commits -gt 200 ]]; then else echo "Total commits: $total_commits. $(expr 200 - $total_commits) commits left to reach minimum required commits" fi + +echo "Commits per user:" +git shortlog -s -e | sed 's///' | awk '{ printf "\t%s (%s): %s\n", $2, $3, $1 }'