* PATCH: _git: fix git-describe completion
@ 2011-05-08 14:22 Valentin Haenel
0 siblings, 0 replies; only message in thread
From: Valentin Haenel @ 2011-05-08 14:22 UTC (permalink / raw)
To: zsh-workers; +Cc: Valentin Haenel
The completion for git-describe misbehaves and outputs an error message
when trying to complete long options.
When typing:
zsh» git describe --[TAB]
I get:
zsh» git describe --_git-describe:3: no such file or directory:
--all[use any ref found in "$GIT_DIR/refs/"]
dirty=
Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de>
---
Completion/Unix/Command/_git | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 4664cfa..f58550e 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -589,7 +589,7 @@ _git-commit () {
(( $+functions[_git-describe] )) ||
_git-describe () {
_arguments -w -S -s \
- '(*)--dirty=-[describe HEAD, adding mark if dirty]::mark'
+ '(*)--dirty=-[describe HEAD, adding mark if dirty]::mark' \
'--all[use any ref found in "$GIT_DIR/refs/"]' \
'--tags[use any ref found in "$GIT_DIR/refs/tags"]' \
'(--tags)--contains[find the tag after the commit instead of before]' \
--
1.7.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-08 14:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-08 14:22 PATCH: _git: fix git-describe completion Valentin Haenel
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).