* PATCH: Fix a bug in completion for 'git aliases'
@ 2008-08-30 21:34 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2008-08-30 21:34 UTC (permalink / raw)
To: zsh workers
Consider you got this:
[alias]
co = checkout
And try: git co <tab>
...everything looks fine; but then you try: git co -b <tab>
...which should work, too (by displaying a descriptive text:
"branch-name"), but it does not.
The reason for this is too much quoting. This should be the right fix.
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.93
diff -u -r1.93 _git
--- Completion/Unix/Command/_git 30 Aug 2008 11:36:54 -0000 1.93
+++ Completion/Unix/Command/_git 30 Aug 2008 20:38:48 -0000
@@ -4290,7 +4290,7 @@
if [[ -z "${words[3,-1]}" ]] ; then
tmpwords[$(( ${#tmpwords} + 1 ))]=""
else
- tmpwords+=("${words[3,-1]}")
+ tmpwords+=(${words[3,-1]})
fi
words=("${tmpwords[@]}")
(( CURRENT += ${#${(z)git_aliases[$words[2]]}} - 1 ))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-30 21:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-30 21:34 PATCH: Fix a bug in completion for 'git aliases' Frank Terbeck
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).