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