From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21119 invoked by alias); 23 Aug 2015 08:36:36 -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: X-Seq: 36277 Received: (qmail 5018 invoked from network); 23 Aug 2015 08:36:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=U7o ioWNGmjvPQ9wOHkDDf3/qgV8=; b=Y0a/sZYqsidajME/pI6XjsSMY2u9Y91AxN6 2JaN6ZXUobc+iiBA+DRuH8J6gjmTQXexzXouMPXjVOlw1Aywbbicxw49HQwNDnxZ KHk9JHgxfRHuEd5qtAu9OtTwEHO09aDzuX51fsGVrG6a2OdyxjCh1IToZ2bR5xJN srNMObDw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=U7 oioWNGmjvPQ9wOHkDDf3/qgV8=; b=O7Q7abcgmzV3NnXrbgn0oK7Bb6Y6X/OSq7 bAZgmQsSLDa0WddW3bMgFzx/e/iHRWk8r4WKQExmFwJtotiappGHCx17hHc+AzWH YCHl0cuwfbmSjiuhnnNEMCOYKEy2PqZYoC/oYSyDK1neQ31QbVWd4OJ8sbBKauQZ GkGWxZtd0= X-Sasl-enc: QLd3Engj0WZMn8L0K2CrpUhO0tqt6YKVt4ozpYolNrha 1440318993 Date: Sun, 23 Aug 2015 08:36:31 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] _git-clone: Update completion Message-ID: <20150823083631.GI5472@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Updated for git-clone 2.4.5. Wrote this on Friday. diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 0d705a9..9f018f0 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -581,13 +581,14 @@ _git-clone () { # TODO: Argument to -o should be a remote name. # TODO: Argument to -b should complete branch names in the repository being - # cloned. + # cloned (see __git_references()) _arguments -w -C -S -s \ '(-l --local --no-local)'{-l,--local}'[clone locally, hardlink refs and objects if possible]' \ '(-l --local --no-local)--no-local[override --local, as if file:/// URL was given]' \ '--no-hardlinks[copy files instead of hardlinking when doing a local clone]' \ '(-s --shared)'{-s,--shared}'[share the objects with the source repository (warning: see man page)]' \ '--reference[reference repository]:repository:_directories' \ + '--dissociate[make the newly-created repository independent of the --reference repository]' \ '(-q --quiet)'{-q,--quiet}'[operate quietly]' \ '(-v --verbose)'{-v,--verbose}'[always display the progressbar]' \ '--progress[output progress even if stderr is not a terminal]' \ @@ -600,8 +601,10 @@ _git-clone () { '--template=[directory to use as a template for the object database]: :_directories' \ '*'{-c,--config}'[= set a configuration variable in the newly created repository]' \ '--depth[create a shallow clone, given number of revisions deep]: :__git_guard_number depth' \ - '--single-branch[clone only history leading up to the main branch or the one specified by -b]' \ + '(--no-single-branch)--single-branch[clone only history leading up to the main branch or the one specified by -b]' \ + '(--single-branch)--no-single-branch[clone history leading up each branch]' \ '--recursive[initialize all contained submodules]' \ + '--separate-git-dir[place .git dir outside worktree]:path to .git dir:_path_files -/' \ ': :->repository' \ ': :_directories' && ret=0