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

Re: bash completion with 2.18.0/maint: unknown options

From
Jeff King <peff@peff.net>
Date
Jul 14, 2018, 21:24 UTC
Message-ID
<20180714212433.GB6430@sigill.intra.peff.net>
In-Reply-To
<d9272a12c2a38429857777f7811010956b7b6ed5.camel@aegee.org>
On Sat, Jul 14, 2018 at 02:46:17PM +0000, Дилян Палаузов wrote:
Show 7 quoted lines
> After upgrading to 2.18 the completion does not work:
> 
> typing "git de<TAB>" prints
> my@host:~$ git deUnknown option: --list-cmds=list-
> mainporcelain,others,nohelpers,alias,list-complete,config
> usage: git [--version] [--help] [-C <path>] [-c name=value]
> [...]

In v2.18, the completions are generated programatically using new options added to the git binary. The completion and the git binary you're using have to be upgraded in lockstep (this has always been the case, though I think this is probably the case where not doing so would have the biggest effect).

Are you sure the git binary you're running matches the completion?

You mentioned that you're sourcing the completion from a clone in /git/git. What does `type git` report?

-Peff
Previous: Дилян ПалаузовNext: Дилян Палаузов
Message 2 of 3 in “bash completion with 2.18.0/maint: unknown options”
  1. Дилян ПалаузовJul 14, 2018
  2. Jeff KingJul 14, 2018
  3. Дилян ПалаузовJul 14, 2018

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.