bugfix: add missing $s in git_ahead

This commit is contained in:
Itzik Ephraim 2015-12-31 15:14:28 +02:00
parent ebd5432202
commit 6fa3332438

View File

@ -1,9 +1,9 @@
function git_ahead -a ahead behind diverged none function git_ahead -a ahead behind diverged none
git_is_repo; and begin git_is_repo; and begin
test -z "$ahead"; and set ahead "+" test -z "$ahead"; and set ahead "+"
test -z "behind"; and set behind "-" test -z "$behind"; and set behind "-"
test -z "diverged"; and set diverged "±" test -z "$diverged"; and set diverged "±"
test -z "none"; and set none "" test -z "$none"; and set none ""
command git rev-list --left-right "@{upstream}...HEAD" ^/dev/null \ command git rev-list --left-right "@{upstream}...HEAD" ^/dev/null \
| awk "/>/ {a += 1} /</ {b += 1} \ | awk "/>/ {a += 1} /</ {b += 1} \
{if (a > 0) nextfile} END \ {if (a > 0) nextfile} END \