From a7064395c2ba3aba0d5b6f551019ed698ebe6206 Mon Sep 17 00:00:00 2001 From: Nicolai Skogheim Date: Fri, 10 Jul 2015 03:29:09 +0200 Subject: [PATCH] Meke coloring respect --above. Fix 74 --- bin/git-effort | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-effort b/bin/git-effort index 47524f1..45cfd2f 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -68,7 +68,7 @@ effort() { test $commits -le $above && exit 0 # commits - color_for $commits + color_for $(( $commits - $above )) len=${#file} dot="." f_dot="$file" @@ -81,7 +81,7 @@ effort() { # active days active=`active_days "$commit_dates"` - color_for $active + color_for $(( $active - $above )) msg="$msg $(printf "\033[${color}m %d\033[0m\n" $active)" echo "$msg" }