* Completion for branches or tags broken with zsh
@ 2011-03-06 21:38 Stefan Haller
2011-04-02 22:50 ` Jonathan Nieder
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Haller @ 2011-03-06 21:38 UTC (permalink / raw)
To: git; +Cc: Jonathan Nieder, Mark Lodato
In the current master (and 1.7.4), tab completion for refs doesn't work
in zsh. When typing "git log orig<TAB>", nothing appears.
A revision that works for me is 5a3a484d57. I suspect it may have
something to do with dbda3b1090, but it's hard to bisect because many
revisions on the way can't even be loaded by zsh.
I don't know enough about the completion mechanisms to be able to debug
this myself. Anybody able to help?
(My zsh version is 4.3.9, in case it makes a difference.)
--
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Completion for branches or tags broken with zsh
2011-03-06 21:38 Completion for branches or tags broken with zsh Stefan Haller
@ 2011-04-02 22:50 ` Jonathan Nieder
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Nieder @ 2011-04-02 22:50 UTC (permalink / raw)
To: Stefan Haller; +Cc: git, Mark Lodato
Hi Stefan,
Stefan Haller wrote:
> In the current master (and 1.7.4), tab completion for refs doesn't work
> in zsh. When typing "git log orig<TAB>", nothing appears.
Sorry for the long silence. Indeed, it seems that I broke this in
da48616f1d (bash: get --pretty=m<tab> completion to work with bash v4,
2010-12-02). No fix yet.
Here's the puzzle: _git calls _get_comp_words_by_ref to fill the local
array "${words[@]}". It doesn't succeed. Within _get_comp_words_by_ref,
${words[@]} gets filled correctly, but within _git, it keeps the value it
previously had.
Alas, that's as far as I can get without learning something about zsh. :)
I can't reproduce it when defining functions like this directly, so
there might be something subtle going on.
Hints?
Thanks for noticing.
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-02 22:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-06 21:38 Completion for branches or tags broken with zsh Stefan Haller
2011-04-02 22:50 ` Jonathan Nieder
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).