From 9c6bbf019479e4d1bc9eb19a147873c7e33c689b Mon Sep 17 00:00:00 2001 From: structix Date: Wed, 2 Jan 2019 02:18:41 +0100 Subject: [PATCH] Added name filter --- gitistics.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitistics.sh b/gitistics.sh index 051291f..44ae54c 100755 --- a/gitistics.sh +++ b/gitistics.sh @@ -3,6 +3,9 @@ # Specify a directory with all Git repositories REPODIR=~/Git +# Regex or fixed name (brackets need to be escaped with a backslash) +REPOUSER="\(structix\|Janek\)" + # Specify the start date, where the statistics should be gathered STARTDATE='01 Jan 2018' @@ -21,7 +24,7 @@ do cd ${dir##*/} # show amount of commits of all users - git shortlog -sne --all --since="01 Jan 2018" + git shortlog -sne --all --author=$REPOUSER --since="01 Jan 2018" # go back