From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 15295b78 for ; Wed, 4 Sep 2019 08:21:47 +0000 (UTC) Received: (qmail 22140 invoked by alias); 4 Sep 2019 08:21:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44727 Received: (qmail 9980 invoked by uid 1010); 4 Sep 2019 08:21:39 -0000 X-Qmail-Scanner-Diagnostics: from joooj.vinc17.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25559. spamassassin: 3.4.2. Clear:RC:0(155.133.131.76):SA:0(-1.9/5.0):. Processed in 1.683484 secs); 04 Sep 2019 08:21:39 -0000 X-Envelope-From: vincent@vinc17.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Wed, 4 Sep 2019 10:20:56 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: git completion: does not know "git switch" Message-ID: <20190904082056.GA15330@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20190902145953.GA23939@cventin.lip.ens-lyon.fr> <38397-1567442712.108627@_ODV.g8W6.Bjnx> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <38397-1567442712.108627@_ODV.g8W6.Bjnx> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.12.1+33 (6a74e24e) vl-117499 (2019-06-23) 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)