git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-completion.tcsh and git-completion.zsh are broken?

From
Manlio Perillo <manlio.perillo@gmail.com>
Date
Jan 9, 2013, 19:17 UTC
Message-ID
<50EDC237.3000309@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.

I have finally resolved all the problems with my path completion in git-completion.bash and, in order to avoid regressions, I'm checking the git-completion.zsh and git-completion.tcsh scripts, since they use the bash completion support.

I have installed (Debian 6.0.6):
* zsh 4.3.10 (i686-pc-linux-gnu)
* tcsh 6.17.02 (Astron) 2010-05-12 (i586-intel-linux)
  options wide,nls,dl,al,kan,rh,nd,color,filec
Note that I'm using my modified git-completion.bash script.

zsh compatibility support in git-completion.bash seems to "work" (I just get a segmentation fault ...), however I have problems with the .zsh and .tcsh scripts.

$zsh synapsis% source contrib/completion/git-completion.zsh (anon):6: command not found: ___main _git:11: command not found: _default

I have disabled compinit autoload (since, I don't know how, it is able to find the git completion script)

$tcsh synapsis:~/projects/git/contrib/git> source ~/.git-completion.tcsh synapsis:~/projects/git/contrib/git> git show HEAD:<TAB>

does not show the file list for the tree object in the HEAD
another problem is that a space is added after a directory name.
Another problem with zsh:

$zsh synapsis% git show HEAD:<TAB>569GPXZims

I don't know where that 569GPXZims came from.
Can someone else confirm these problems?
Thanks  Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlDtwjcACgkQscQJ24LbaURpuACfVQnoBC3tzvxB0JYxQ5aL3rmN 8GEAnA7OjVtPqz+aq/PGtNtTHWgFqhKK =3UdZ -----END PGP SIGNATURE-----

Next: Marc Khouzam
Message 1 of 3 in “git-completion.tcsh and git-completion.zsh are broken?”
  1. Manlio PerilloJan 9, 2013
  2. Marc KhouzamJan 9, 2013
  3. Manlio PerilloJan 9, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.