|
|
|
@ -18,9 +18,10 @@ case "$state" in
@@ -18,9 +18,10 @@ case "$state" in
|
|
|
|
|
(branch) |
|
|
|
|
remote="$words[(($CURRENT - 1))]" |
|
|
|
|
branches=($( |
|
|
|
|
git branch -a \ |
|
|
|
|
| grep "remotes/${remote}" \ |
|
|
|
|
| sed -e 's/[ \*]*//g' -e "s:remotes/${remote}/::g" |
|
|
|
|
git branch -r \ |
|
|
|
|
| sed \ |
|
|
|
|
-e "/${remote}\/HEAD -> ${remote}/d" \ |
|
|
|
|
-e "s/^[[:space:]]*${remote}\///g" |
|
|
|
|
)) |
|
|
|
|
_describe -t branch 'branches' branches && ret=0 |
|
|
|
|
;; |
|
|
|
|