Merge pull request #43 from afarah1/master

Fix ambiguous argument when author is not specified for commits by hour
This commit is contained in:
Lukáš Mešťan 2018-07-26 10:56:39 +02:00 committed by GitHub
commit dc86f8b6ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,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' "$_author" $_since $_until | grep " $i:" | wc -l)
echo "$(git shortlog -n --no-merges --format='%ad %s' $_author $_since $_until | grep ' '$i: | wc -l)"
done | awk '{
count[$1] = $2
total += $2