<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.zsh, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-03-05T16:54:03Z</updated>
<entry>
<title>git-completion.zsh: define __gitcomp_file compatibility function</title>
<updated>2013-03-05T16:54:03Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2013-03-05T08:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=926eb7ba4c52fbfee9fba86c16bb6c374857190e'/>
<id>urn:sha1:926eb7ba4c52fbfee9fba86c16bb6c374857190e</id>
<content type='text'>
Commit fea16b47b60 (Fri Jan 11 19:48:43 2013, Manlio Perillo,
git-completion.bash: add support for path completion), introduced a new
__gitcomp_file function that uses the bash builtin "compgen". The
function was redefined for ZSH in the deprecated section of
git-completion.bash, but not in the new git-completion.zsh script.

As a result, users of git-completion.zsh trying to complete "git add
fo&lt;tab&gt;" get an error:

git add fo__gitcomp_file:8: command not found: compgen

This patch adds the redefinition and removes the error.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: add new zsh completion</title>
<updated>2012-11-19T18:56:47Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2012-11-18T11:08:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c9407860f47ec4cf1c64a2c2ca4ae0b451469658'/>
<id>urn:sha1:c9407860f47ec4cf1c64a2c2ca4ae0b451469658</id>
<content type='text'>
It seems there's always issues with zsh's bash completion emulation.
I've tried to fix as many as I could[1], and most of the fixes are already
in the latest version of zsh, but still, there are issues.

There is no point going through all that pain; the emulation is easy to
achieve, and this patch works better than zsh's bash completion
emulation.

[1] http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=commitdiff;h=23907bb840c80eef99eabba17e086e44c9b2d3fc

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
