mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-23 14:52:01 +08:00
Merge pull request #218 from oranja/bugfix-git-ahead
bugfix: add missing $s in variable tests in git_ahead.fish
This commit is contained in:
commit
5e7abd6a4d
|
@ -1,9 +1,9 @@
|
|||
function git_ahead -a ahead behind diverged none
|
||||
git_is_repo; and begin
|
||||
test -z "$ahead"; and set ahead "+"
|
||||
test -z "behind"; and set behind "-"
|
||||
test -z "diverged"; and set diverged "±"
|
||||
test -z "none"; and set none ""
|
||||
test -z "$behind"; and set behind "-"
|
||||
test -z "$diverged"; and set diverged "±"
|
||||
test -z "$none"; and set none ""
|
||||
command git rev-list --left-right "@{upstream}...HEAD" ^/dev/null \
|
||||
| awk "/>/ {a += 1} /</ {b += 1} \
|
||||
{if (a > 0) nextfile} END \
|
||||
|
|
Loading…
Reference in New Issue
Block a user