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

Re: git git<tab> completes non-existent command `git gitk`

From
Junio C Hamano <gitster@pobox.com>
Date
May 25, 2020, 00:27 UTC
Message-ID
<xmqqlflgq2nr.fsf@gitster.c.googlers.com>
In-Reply-To
<20200524213808.24849-1-matheus.bernardino@usp.br>
Matheus Tavares <matheus.bernardino@usp.br> writes:
> This should solve the problem, althought it's admittedly not very elegant...
> Nevertheless, I'd be happy to send a complete patch if folks are happy with the
> workaround.
Please don't.
Show 5 quoted lines
> In the meantime, you could use:
>
> 	git config completion.commands -gitk
>
> To locally remove the completion for "gitk".

I think an equivalent of this in-core would be the way to go. I wonder if there are any commands other than gitk that cannot be invoked as a subcommand of "git" potty.

t/t9902-completion.sh would be a good place to test this.
Previous: Matheus TavaresNext: Matheus Tavares Bernardino
Message 3 of 4 in “git git<tab> completes non-existent command `git gitk`”
  1. Anthony SottileMay 23, 2020
  2. Matheus TavaresMay 24, 2020
  3. Junio C HamanoMay 25, 2020
  4. Matheus Tavares BernardinoMay 25, 2020

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.