From 09fa5b045652741cc553cb58e2306f888a8f3c39 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Feb 2019 23:17:46 +0100 Subject: [PATCH] Add more github stats --- dev/tools/github_authors_peryear.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/tools/github_authors_peryear.sh b/dev/tools/github_authors_peryear.sh index 1f3a7fea5f6..7184d6c44ae 100755 --- a/dev/tools/github_authors_peryear.sh +++ b/dev/tools/github_authors_peryear.sh @@ -9,6 +9,10 @@ fi FROM=$1-01-01 TO=$1-12-31 +echo "Number of contributors for the year" echo "git log --since $FROM --before $TO | grep ^Author | sort -u -f -i -b | wc -l" git log --since $FROM --before $TO | grep ^Author | sort -u -f -i -b | wc -l + +echo "Number of commit for the year" +git log --pretty='format:%cd' --date=format:'%Y' | uniq -c | awk '{print "Year: "$2", commits: "$1}' | grep "Year: $1"