Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] _git: add completion for git-version



On Sun, 19 Jan 2020 at 14:14, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Eitan Adler wrote on Sun, 19 Jan 2020 21:31 +00:00:
> > +++ b/Completion/Unix/Command/_git
> > @@ -407,6 +407,12 @@ _git-bundle () {
> > +_git-version () {
> > +  _arguments -S $endopt \
> > +    '--build-options[also print build options]'
> > +}
> > @@ -5951,7 +5957,8 @@ _git_commands () {
> > +    version:'show git version')
>
> This subcommand is undocumented (except one mention in the release
> notes); is it a public API?

I believe it to be a public API. In fact the --build-options was added
since modifying the output otherwise would affect consumers. I'll add
sending an upstream patch to git to my never ending TODO list.



--
Eitan Adler



Messages sorted by: Reverse Date, Date, Thread, Author