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

Re: bash completion with 2.18.0/maint: unknown options

From
ДПДилян Палаузов <dilyan.palauzov@aegee.org>
Date
Jul 14, 2018, 21:38 UTC
Message-ID
<05bba1ef0a5da7662cc8c09f90bacc9059eeac05.camel@aegee.org>
In-Reply-To
<20180714212433.GB6430@sigill.intra.peff.net>
Hello Jeff,

thanks for your answer. You are right: I have forgotten to run 'make install'. After doing so the completion works again.

type git reports /usr/local/bin/git
Regards
  Дилян
On Sat, 2018-07-14 at 17:24 -0400, Jeff King wrote:
Show 22 quoted lines
> On Sat, Jul 14, 2018 at 02:46:17PM +0000, Дилян Палаузов wrote:
> 
> > 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: Jeff King
Message 3 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.