* Re: Bug#524754: zsh: git write-tree and git send-pack completion fails because of missing backslashes
[not found] <87r5zoa8s3.fsf@Astalo.kon.iki.fi>
@ 2009-04-20 3:07 ` Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2009-04-20 3:07 UTC (permalink / raw)
To: Kalle Olavi Niemitalo, 524754; +Cc: zsh-workers
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 \
^ permalink raw reply [flat|nested] only message in thread