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