Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _git: fix git-describe completion



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