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

Re: Git completion not using ls-remote to auto-complete during push

From
Stefan Näwe <stefan.naewe@atlas-elektronik.com>
Date
Jun 18, 2015, 07:03 UTC
Message-ID
<55826D2E.2060308@atlas-elektronik.com>
In-Reply-To
<CAHd499Dk44Fq5c_wadxT_kuCs5BdkRwKZWOHyAgE4oi7pezxPw@mail.gmail.com>
Am 17.06.2015 um 18:10 schrieb Robert Dailey:
Show 13 quoted lines
> I do the following:
> 
> $ git push origin :topic
> 
> If I stop halfway through typing 'topic' and hit TAB, auto-completion
> does not work if I do not have a local branch by that name (sometimes
> I delete my local branch first, then I push to delete it remotely). I
> thought that git completion code was supposed to use ls-remote to auto
> complete refs used in push operations. Is this supposed to work?
> 
> I'm using Git 2.4.3. Tested on both MSYS2 in Windows and Linux Mint.
> Same behavior in both. I am using the latest git completion code from
> the master branch in the git repo.
Same here!

But it works in my self-compiled version of msysgit (yes, the old 'Git for Windows' development environment) which is rebased onto v2.2.2. Time for 'git bisect' I guess...

Stefan
-- 
----------------------------------------------------------------
/dev/random says: A cat sleeps fat, yet walks thin.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')" 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF
Previous: Robert DaileyNext: SZEDER Gábor
Message 2 of 6 in “Git completion not using ls-remote to auto-complete during push”
  1. Robert DaileyJun 17, 2015
  2. Stefan NäweJun 18, 2015
  3. SZEDER GáborJun 18, 2015
  4. Robert DaileyJun 18, 2015
  5. SZEDER GáborJun 18, 2015
  6. Robert DaileyJun 18, 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.