mirror of
https://github.com/tj/git-extras.git
synced 2026-09-15 09:56:19 -04:00
Merge pull request #400 from nicolaiskogheim/fix-off-by-one
effort: don't count untouched files
This commit is contained in:
commit
d97faf2424
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue