Commit de0aaeab authored by Derek Stavis's avatar Derek Stavis

git_ahead: Fix indicator override

parent 3471b2c2
...@@ -7,16 +7,12 @@ function git_ahead -a ahead behind diverged none ...@@ -7,16 +7,12 @@ function git_ahead -a ahead behind diverged none
case "" case ""
# no upstream # no upstream
case "0"\t"0" case "0"\t"0"
test -z "$none"; and echo "$none" test -n "$none"; and echo "$none"; or echo ""
or echo ""
case "*"\t"0" case "*"\t"0"
test -z "$behind"; and echo "$behind" test -n "$behind"; and echo "$behind"; or echo "-"
or echo "-"
case "0"\t"*" case "0"\t"*"
test -z "$ahead"; and echo "$ahead" test -n "$ahead"; and echo "$ahead"; or echo "+"
or echo "+"
case "*" case "*"
test -z "$diverged"; and echo "$diverged" test -n "$diverged"; and echo "$diverged"; or echo "±"
or echo "±"
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment