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

Re: git completion: does not know "git switch"

On 2019-09-02 18:45:12 +0200, Oliver Kiddle wrote:
> Vincent Lefevre wrote:
> > If I do "git sw[Tab]", zsh does not find any completion.
> > It should complete to "git switch".
> % git switch -h
> git: 'switch' is not a git command. See 'git --help'.
> On further investigation, it seems git switch and restore are new
> features of 2.23.0. We're always going to be playing catchup to some
> extent. Even where external projects include zsh completions, there
> tends to be a lag. The last update to _git on 17 July brought it in
> line with git 2.22.0 but you might not want to use that function with
> zsh 5.7.1 for other reasons.
> We'd be happy to accept any patches to support the new features.

It seems that the git developers provide completions for bash and zsh:

# bash/zsh completion support for core Git.

Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

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