zsh-workers
 help / color / mirror / code / Atom feed
From: Valentin Haenel <valentin.haenel@gmx.de>
To: zsh-workers@zsh.org
Cc: Valentin Haenel <valentin.haenel@gmx.de>
Subject: PATCH: _git: fix git-describe completion
Date: Sun,  8 May 2011 16:22:42 +0200	[thread overview]
Message-ID: <1304864562-17772-1-git-send-email-valentin.haenel@gmx.de> (raw)

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


                 reply	other threads:[~2011-05-08 14:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1304864562-17772-1-git-send-email-valentin.haenel@gmx.de \
    --to=valentin.haenel@gmx.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).