Skip to content

Commit

Permalink
Changed: color git-effort(1) commits / active days independently
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 9, 2012
1 parent a75f6db commit 38cba1a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/git-effort
Expand Up @@ -54,10 +54,16 @@ for file in $files; do
commits=`git log --oneline $file | wc -l`
color='90'

# ignore <= --above
test $commits -le $above && continue

active=`active_days $file`
# commits
color_for $commits
printf " \033[${color}m%-45s %-10d %d\033[0m\n" $file $commits $active
printf " \033[${color}m%-45s %-10d" $file $commits

# active days
active=`active_days $file`
color_for $active
printf "\033[${color}m %d\033[0m\n" $active
done
echo

0 comments on commit 38cba1a

Please sign in to comment.