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

Re: git-completion.tcsh

From
PRPerry Rajnovic <perry.rajnovic@gmail.com>
Date
Apr 9, 2015, 04:41 UTC
Message-ID
<481BCBD7-457B-4AFB-B878-1417C8C5940C@gmail.com>
In-Reply-To
<20150401115519.Horde.JM0TEyhacRn5LYAEffMggQ1@webmail.informatik.kit.edu>
Gábor,
I updated git to include the macports install with bash completion.  under bash it does not exhibit the problem as I described it. To be sure that the completion scripts installed via macports weren’t newer/different (the .bash completion file had a few minor diffs from what I had been using), i reinstalled the tcsh completion using those files, but the same behavior happened.
So i’m seeing what you’re seeing, bash completion works fine, it’s likely to be something in the wrapper handling.

(updated) environment Darwin 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64 (OS X 10.10.3) Apple Terminal Version 2.5.3 (343.7) git 2.3.4 (+bash_completion, via MacPorts) tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-apple-darwin) options wide,nls,dl,al,kan,sm,rh,color,filec GNU bash, version 4.3.33(1)-release (x86_64-apple-darwin14.0.0)

Thanks!
Perry
Show 54 quoted lines
> On Apr 1, 2015, at 20:55, SZEDER Gábor <szeder@ira.uka.de> wrote:
> 
> 
> Quoting Perry Rajnovic <perry.rajnovic@gmail.com>:
> 
>> When using the auto-completion included with git for tcsh, several
>> commands do directly completion with an additional space appended to
>> the end, which defeats the ability to complete to a deeper
>> sub-directory.
>> 
>> For example, if I have a git repository including the following:
>> basedir/foo/bar/somefile.c
>> 
>> (works as expected, git add)
>> $ cd basedir
>> $ git add f<tab>
>> $ git add foo/
>> $ git add foo/b<tab>
>> $ git add foo/bar/
>> $ git add foo/bar/s<tab>
>> $ git add foo/bar/somefile.c
>> 
>> (works not as expected, git rm)
>> $ cd basedir
>> $ git rm f<tab>
>> $ git rm foo
>> $ git rm foo<backspace>/b<tab>
>> $ git rm foo/bar
>> there’s a trailing space after foo and bar in the above lines, which
>> means it’s not possible to initiate completion or immediately start
>> typing, i must back-space before continuing.
>> 
>> I’m fairly certain i’ve seen this for other commands as  well, but
>> i’m not sure to what extent this occurs throughout the commands.
>> 
>> Environment info:
>> OS: Darwin 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47
>> PST  2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64 (OSX 10.10.2)
>> Apple Terminal Version 2.5.1 (343.6)
>> git version 2.3.2 (via MacPorts)
>> tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-apple-darwin) options
>> wide,nls,dl,al,kan,sm,rh,color,filec
> 
> The tcsh completion script is just a wrapper, it relies on the bash
> completion script to do the heavy lifting and tunnels its output int
> tcsh's completion infrastructure.
> Could you try bash completion in your environment first to see,
> whether it's a bash completion issue that I can't reproduce or an
> issue with the tcsh wrapper?
> 
> Cc'ing Marc, author of the tcsh wrapper.
> 
> 
> Gábor
Previous: SZEDER GáborNext: Marc Khouzam
Message 2 of 5 in “Re: git-completion.tcsh”
  1. SZEDER GáborApr 1, 2015
  2. Perry RajnovicApr 9, 2015
  3. Marc KhouzamApr 23, 2015
  4. SZEDER GáborApr 24, 2015
  5. Marc KhouzamApr 24, 2015

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.