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.