From: Clint Adams <schizo@debian.org>
To: Kalle Olavi Niemitalo <kon@iki.fi>, 524754@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#524754: zsh: git write-tree and git send-pack completion fails because of missing backslashes
Date: Mon, 20 Apr 2009 03:07:46 +0000 [thread overview]
Message-ID: <20090420030746.GA26526@scru.org> (raw)
In-Reply-To: <87r5zoa8s3.fsf@Astalo.kon.iki.fi>
On Sun, Apr 19, 2009 at 07:49:16PM +0300, Kalle Olavi Niemitalo wrote:
> _git-write-tree:3: command not found: --prefix=-[write tree representing given sub-directory]:sub-directory:_directories -r ""
> --missing-ok
>
> Likewise, type "git send-pack " and press TAB. Error message:
>
> _git-send-pack:3: command not found: --all[update all refs that exist locally]
> --
>
> Both bugs are caused by missing backslashes in the completion
> script. The fix is trivial (presumably also for copyright
> purposes):
Thanks.
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.119
diff -u -r1.119 _git
--- Completion/Unix/Command/_git 4 Apr 2009 14:53:02 -0000 1.119
+++ Completion/Unix/Command/_git 20 Apr 2009 03:05:56 -0000
@@ -753,7 +753,7 @@
(( $+functions[_git-write-tree] )) ||
_git-write-tree () {
_arguments \
- '--missing-ok[ignore objects in the index that are missing in the object database]'
+ '--missing-ok[ignore objects in the index that are missing in the object database]' \
'--prefix=-[write tree representing given sub-directory]:sub-directory:_directories -r ""' && ret=0
}
@@ -1282,7 +1282,7 @@
(( $+functions[_git-send-pack] )) ||
_git-send-pack () {
_arguments \
- '(--receive-pack --exec)'{--receive-pack=-,--exec=-}'[specify path to git-receive-pack on remote side]:remote path'
+ '(--receive-pack --exec)'{--receive-pack=-,--exec=-}'[specify path to git-receive-pack on remote side]:remote path' \
'--all[update all refs that exist locally]' \
'--force[update remote orphaned refs]' \
$verbose_arg \
parent reply other threads:[~2009-04-20 3:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <87r5zoa8s3.fsf@Astalo.kon.iki.fi>]
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=20090420030746.GA26526@scru.org \
--to=schizo@debian.org \
--cc=524754@bugs.debian.org \
--cc=kon@iki.fi \
--cc=zsh-workers@sunsite.dk \
/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).