Merge pull request #400 from nicolaiskogheim/fix-off-by-one

effort: don't count untouched files
This commit is contained in:
hemanth.hm 2015-07-25 12:17:34 +05:30
commit d97faf2424

View file

@ -62,6 +62,13 @@ effort() {
local commit_dates
commit_dates=`dates $file`
[ $? -gt 0 ] && exit 255
# Ensure it's not just an empty line
if [ -z "`head -c 1 <<<$(echo $commit_dates)`" ]
then
exit 0
fi
commits=`wc -l <<<"$(echo "$commit_dates")"`
color='90'