{"thread":{"id":"48885","subject":"bash completion with 2.18.0/maint: unknown options","startedAt":"2018-07-14T14:51:35Z","lastAt":"2018-07-14T21:39:26Z","messageCount":3,"participants":["Дилян Палаузов","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"352548","messageId":"d9272a12c2a38429857777f7811010956b7b6ed5.camel@aegee.org","threadId":"48885","inReplyTo":null,"subject":"bash completion with 2.18.0/maint: unknown options","fromName":"Дилян Палаузов","fromEmail":"dilyan.palauzov@aegee.org","sentAt":"2018-07-14T14:46:17Z","receivedAt":"2018-07-14T14:51:35Z","isPatch":false,"sender":{"key":"dilyan.palauzov@aegee.org","avatar":null},"body":"Hello,\n\nin /git/git I have v2.18.0 and in ~/.bashrc : \nexport\nPS1='${debian_chroot:+($debian_chroot)}\\[\\e[01;32m\\]\\u@\\h\\[\\e[00m\\]:\\[\\\ne[\n01;34m\\]\\w\\[\\e[36m\\]$(__git_ps1 \" %s\")\\$ \\[\\e[0m\\]'\nsource /git/git/contrib/completion/git-completion.bash \nsource /git/git/contrib/completion/git-prompt.sh\n\nAfter upgrading to 2.18 the completion does not work:\n\ntyping \"git de<TAB>\" prints\nmy@host:~$ git deUnknown option: --list-cmds=list-\nmainporcelain,others,nohelpers,alias,list-complete,config\nusage: git [--version] [--help] [-C <path>] [-c name=value]\n           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-\npath]\n           [-p | --paginate | --no-pager] [--no-replace-objects] [\n--bare]\n           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n           <command> [<args>]\nl.txt\n\nwith l.txt being part of a file called \"del.txt\"\n\nor typing \"git reb<TAB>\" I expect to have rebase, but I see\nmy@myhost:~$ git rebUnknown option: --list-cmds=list-\nmainporcelain,others,nohelpers,alias,list-complete,config\nusage: git [--version] [--help] [-C <path>] [-c name=value]\n           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-\npath]\n           [-p | --paginate | --no-pager] [--no-replace-objects] [\n--bare]\n           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n           <command> [<args>]\n\nIdeas?\n\nDoing in git/git/ \"git checkout v2.17.\" followed by 'source\n/git/git/contrib/completion/git-comletion.bash\" does help (makes the\ncompletion functioning).\n\nIn the likely case this is fixed by now on master, please backport the\nfix soon to the maint branch.\n\nGreetings\n  Дилят\t\n\n"},{"id":"352558","messageId":"20180714212433.GB6430@sigill.intra.peff.net","threadId":"48885","inReplyTo":"d9272a12c2a38429857777f7811010956b7b6ed5.camel@aegee.org","subject":"Re: bash completion with 2.18.0/maint: unknown options","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2018-07-14T21:24:33Z","receivedAt":"2018-07-14T21:24:36Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sat, Jul 14, 2018 at 02:46:17PM +0000, Дилян Палаузов wrote:\n\n> After upgrading to 2.18 the completion does not work:\n> \n> typing \"git de<TAB>\" prints\n> my@host:~$ git deUnknown option: --list-cmds=list-\n> mainporcelain,others,nohelpers,alias,list-complete,config\n> usage: git [--version] [--help] [-C <path>] [-c name=value]\n> [...]\n\nIn v2.18, the completions are generated programatically using new\noptions added to the git binary. The completion and the git binary\nyou're using have to be upgraded in lockstep (this has always been the\ncase, though I think this is probably the case where not doing so would\nhave the biggest effect).\n\nAre you sure the git binary you're running matches the completion?\n\nYou mentioned that you're sourcing the completion from a clone in\n/git/git. What does `type git` report?\n\n-Peff\n"},{"id":"352560","messageId":"05bba1ef0a5da7662cc8c09f90bacc9059eeac05.camel@aegee.org","threadId":"48885","inReplyTo":"20180714212433.GB6430@sigill.intra.peff.net","subject":"Re: bash completion with 2.18.0/maint: unknown options","fromName":"Дилян Палаузов","fromEmail":"dilyan.palauzov@aegee.org","sentAt":"2018-07-14T21:38:59Z","receivedAt":"2018-07-14T21:39:26Z","isPatch":false,"sender":{"key":"dilyan.palauzov@aegee.org","avatar":null},"body":"Hello Jeff,\n\nthanks for your answer.  You are right: I have forgotten to run 'make\ninstall'.  After doing so the completion works again.\n\ntype git reports /usr/local/bin/git\n\nRegards\n  Дилян\n\nOn Sat, 2018-07-14 at 17:24 -0400, Jeff King wrote:\n> On Sat, Jul 14, 2018 at 02:46:17PM +0000, Дилян Палаузов wrote:\n> \n> > After upgrading to 2.18 the completion does not work:\n> > \n> > typing \"git de<TAB>\" prints\n> > my@host:~$ git deUnknown option: --list-cmds=list-\n> > mainporcelain,others,nohelpers,alias,list-complete,config\n> > usage: git [--version] [--help] [-C <path>] [-c name=value]\n> > [...]\n> \n> In v2.18, the completions are generated programatically using new\n> options added to the git binary. The completion and the git binary\n> you're using have to be upgraded in lockstep (this has always been the\n> case, though I think this is probably the case where not doing so would\n> have the biggest effect).\n> \n> Are you sure the git binary you're running matches the completion?\n> \n> You mentioned that you're sourcing the completion from a clone in\n> /git/git. What does `type git` report?\n> \n> -Peff\n\n"}]}