rename _GIT_EXCLUDE to _GIT_PATHSPEC

This commit is contained in:
Lukas Mestan 2017-03-15 20:11:56 +01:00
parent f344f0dfb7
commit 29bbc98c87
No known key found for this signature in database
GPG key ID: 93A4F5E8826DD56F

View file

@ -13,7 +13,7 @@ if [ ! -z ${_until} ]
then _until="--until=$_until"
fi
_exclude=${_GIT_EXCLUDE:-}
_exclude=${_GIT_PATHSPEC:-}
if [ ! -z "${_exclude}" ]
then _exclude="-- . $_exclude"
fi
@ -86,6 +86,7 @@ function detailedGitStats() {
}
if ( first[author] != "" ) {
printf "\t lines changed: %s\n", more[author] + less[author]
printf "\t first commit: %s\n", first[author]
printf "\t last commit: %s\n", last[author]
}
@ -142,7 +143,7 @@ function commitsByMonth() {
for i in Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
do
echo -en "\t$i\t"
echo $(git shortlog -n --no-merges --format='%ad %s' $_since $_until $_exclude | grep " $i " | wc -l)
echo $(git shortlog -n --no-merges --format='%ad %s' $_since $_until | grep " $i " | wc -l)
done | awk '{
count[$1] = $2
total += $2
@ -166,7 +167,7 @@ function commitsByWeekday() {
for i in Mon Tue Wed Thu Fri Sat Sun
do
echo -en "\t$i\t"
echo $(git shortlog -n --no-merges --format='%ad %s' $_since $_until $_exclude | grep "$i " | wc -l)
echo $(git shortlog -n --no-merges --format='%ad %s' $_since $_until | grep "$i " | wc -l)
done | awk '{
}
@ -194,7 +195,7 @@ function commitsByHour() {
for i in `seq -w 0 23`
do
echo -ne "\t$i\t"
echo $(git shortlog -n --no-merges --format='%ad %s' $_since $_until $_exclude | grep " $i:" | wc -l)
echo $(git shortlog -n --no-merges --format='%ad %s' $_since $_until | grep " $i:" | wc -l)
done | awk '{
count[$1] = $2
total += $2