mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Meke coloring respect --above. Fix 74
This commit is contained in:
parent
fa3cf6ab41
commit
a7064395c2
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue