git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2f459b0
)
completion: zsh: simplify direct compadd
author
Felipe Contreras
<redacted>
Wed, 28 Oct 2020 02:06:59 +0000
(20:06 -0600)
committer
Junio C Hamano
<redacted>
Wed, 28 Oct 2020 21:30:59 +0000
(14:30 -0700)
Instead of manually removing the suffix so zsh can add its own, we can
tell zsh to add no suffix, so we don't have to remove it.
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.zsh
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.zsh
b/contrib/completion/git-completion.zsh
index 1ef02f936c73d52816670510bb83b4370e25052e..3689bcbd6c5767b6aa1a342fb874247f0681a7df 100644
(file)
--- a/
contrib/completion/git-completion.zsh
+++ b/
contrib/completion/git-completion.zsh
@@
-101,7
+101,7
@@
__gitcomp_direct ()
emulate -L zsh
compset -P '*[=:]'
- compadd -Q -
- ${${(f)1}%
} && _ret=0
+ compadd -Q -
S '' -- ${(f)1
} && _ret=0
}
__gitcomp_direct_append ()
git clone https://git.99rst.org/PROJECT