From 38cba1a781389efb7d3f65331713dbec50eaa0a6 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Wed, 8 Feb 2012 16:35:47 -0800 Subject: [PATCH] Changed: color `git-effort(1)` commits / active days independently --- bin/git-effort | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/git-effort b/bin/git-effort index fd05c85..593ae33 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -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