Filter other remote branches.
This commit is contained in:
parent
42be3d01f0
commit
304530d990
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ case "$state" in
|
|||
remote="$words[(($CURRENT - 1))]"
|
||||
branches=($(
|
||||
git branch -r \
|
||||
| grep "${remote}/" \
|
||||
| sed \
|
||||
-e "/${remote}\/HEAD -> ${remote}/d" \
|
||||
-e "s/^[[:space:]]*${remote}\///g"
|
||||
|
|
Loading…
Reference in a new issue