{"thread":{"id":"52310","subject":"No tab completion for git version?","startedAt":"2019-11-22T10:19:41Z","lastAt":"2019-11-27T17:42:21Z","messageCount":2,"participants":["ryenus","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"386812","messageId":"CAKkAvaywyh2bY4tHX2XvugM9V8NBUfG-hM_TyK-Ob7Pzm+6xBA@mail.gmail.com","threadId":"52310","inReplyTo":null,"subject":"No tab completion for git version?","fromName":"ryenus","fromEmail":"ryenus@gmail.com","sentAt":"2019-11-22T10:19:27Z","receivedAt":"2019-11-22T10:19:41Z","isPatch":false,"sender":{"key":"ryenus@gmail.com","avatar":"https://avatars.githubusercontent.com/u/610161?v=4"},"body":"Tab completion works for `git --version`, but not `git version`.\nOf course, it would work with a custom executable script git-version on PATH.\n\nInterestingly, it works even if the git-version script is an empty file.\n"},{"id":"387187","messageId":"20191127174219.GA12023@sigill.intra.peff.net","threadId":"52310","inReplyTo":"CAKkAvaywyh2bY4tHX2XvugM9V8NBUfG-hM_TyK-Ob7Pzm+6xBA@mail.gmail.com","subject":"Re: No tab completion for git version?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2019-11-27T17:42:19Z","receivedAt":"2019-11-27T17:42:21Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Nov 22, 2019 at 06:19:27PM +0800, ryenus wrote:\n\n> Tab completion works for `git --version`, but not `git version`.\n> Of course, it would work with a custom executable script git-version on PATH.\n> \n> Interestingly, it works even if the git-version script is an empty file.\n\nIt's because git-version isn't mentioned in \"git help -a\", from which we\ngenerate the completion list. That comes from command-list.h, which in\nturn is generated from command-list.txt, which doesn't mention\ngit-version as a command. And we can't add it there until it has a\nmanpage (since we pull the oneline description from the synopsis).\n\nIt might not be a bad thing to have a manpage. For example, the\n--build-options is undocumented.\n\ncmd_version() is also weirdly in help.c, not builtin/help.c, which might\nbe worth fixing.\n\n-Peff\n"}]}