Skip to content

Commit

Permalink
Added a greater color range to git-effort(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 8, 2012
1 parent f07197c commit 77ff0fe
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/git-effort
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ for file in $files; do
fi

test $commits -gt 10 && color='33'
test $commits -gt 25 && color='93'
test $commits -gt 50 && color='31'
test $commits -gt 100 && color='91'
test $commits -gt 25 && color='33;1'
test $commits -gt 50 && color='93'
test $commits -gt 75 && color='93;1'
test $commits -gt 100 && color='31'
test $commits -gt 125 && color='31;1'
test $commits -gt 150 && color='91'
test $commits -gt 200 && color='91;1'

printf " \033[${color}m%-45s %d\033[0m\n" $file $commits
done
Expand Down

0 comments on commit 77ff0fe

Please sign in to comment.