Added a greater color range to git-effort(1)

This commit is contained in:
TJ Holowaychuk 2012-02-08 08:02:30 -08:00
parent f07197c2cd
commit 77ff0fe0d4

View file

@ -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