summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorNikolai Weibull <pcppopper@users.sourceforge.net>2011-05-29 15:10:30 +0000
committerNikolai Weibull <pcppopper@users.sourceforge.net>2011-05-29 15:10:30 +0000
commit23102b3a9b2f97dac21585acaf70bf8eaefc76f3 (patch)
treec0dfcf2b162e2b790a82b8d9a8c26d6748a08840 /Completion/Unix/Command/_git
parenthistlexwords splitting of ";;" in case (diff)
downloadzsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.tar
zsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.tar.gz
zsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.tar.bz2
zsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.tar.lz
zsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.tar.xz
zsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.tar.zst
zsh-23102b3a9b2f97dac21585acaf70bf8eaefc76f3.zip
unposted: Completion/Unix/Command/_git: Update git-branch completion to deal
with -r and -d correctly.
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git20
1 files changed, 13 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b1a509dd4..e062705ee 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -258,16 +258,22 @@ _git-branch () {
d='-d -D'
declare -a dependent_creation_args
- dependent_creation_args=(
- "($l $m $d): :__git_branch_names"
- "::start-point:__git_revisions")
+ if (( words[(I)-r] == 0 )); then
+ dependent_creation_args=(