Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _git: fix git-describe completion
- X-seq: zsh-workers 29187
- From: Valentin Haenel <valentin.haenel@xxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: _git: fix git-describe completion
- Date: Sun, 8 May 2011 16:22:42 +0200
- Cc: Valentin Haenel <valentin.haenel@xxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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@xxxxxx>
---
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author