From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24452 invoked from network); 4 Apr 2008 01:39:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Apr 2008 01:39:14 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 53371 invoked from network); 4 Apr 2008 01:39:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Apr 2008 01:39:10 -0000 Received: (qmail 19432 invoked by alias); 4 Apr 2008 01:39:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24789 Received: (qmail 19415 invoked from network); 4 Apr 2008 01:39:05 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 Apr 2008 01:39:05 -0000 Received: from acolyte.scowler.net (acolyte.scowler.net [216.254.112.45]) by bifrost.dotsrc.org (Postfix) with ESMTP id 89DDB82DC37A for ; Fri, 4 Apr 2008 03:39:01 +0200 (CEST) Received: by acolyte.scowler.net (Postfix, from userid 1000) id 407795C3B9; Thu, 3 Apr 2008 21:38:58 -0400 (EDT) Date: Thu, 3 Apr 2008 21:38:59 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: _stgit Message-ID: <20080404013859.GA21965@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/6574/Fri Apr 4 02:50:34 2008 on bifrost X-Virus-Status: Clean stacked git. This could use tons of work. Index: Completion/Unix/Command/_stgit =================================================================== RCS file: Completion/Unix/Command/_stgit diff -N Completion/Unix/Command/_stgit --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Completion/Unix/Command/_stgit 4 Apr 2008 01:36:58 -0000 @@ -0,0 +1,57 @@ +#compdef stg + +typeset -a subcmds + +subcmds=( + 'help:print the detailed command usage' + 'version:display version information' + 'copyright:display copyright information' + 'clone:make a local clone of a remote repository' + 'id:print the GIT hash value of a StGIT reference' + 'applied:print the applied patches' + 'branch:manage patch stacks' + 'clean:delete the empty patches in the series' + 'commit:permanently store the applied patches into stack base' + 'float:push patches to the top, even if applied' + 'goto:push or pop patches to the given one' + 'hide:hide a patch in the series' + 'init:initialise the current branch for use with StGIT' + 'patches:show the applied patches modifying a file' + 'pop:pop one or more patches from the stack' + 'pull:pull the changes from the remote repository' + 'push:push one or more patches onto of the stack' + 'rebase:move the stack base to another point in history' + 'repair:Fix StGit metadata if branch was modified with git commands' + 'series:print the patch series' + 'sink:send patches deeper down the stack' + 'top:print the name of the top patch' + 'unapplied:print the unapplied patches' + 'uncommit:turn regular GIT commits into StGIT patches' + 'unhide:unhide a hidden patch in the series' + 'delete:delete patches' + 'edit:edit a patch description or diff' + 'export:exports patches to a directory' + 'files:show the files modified by a patch (or the current patch)' + 'fold:integrate a GNU diff patch into the current patch' + 'import:import a GNU diff file as a new patch' + 'log:display the patch changelog' + 'mail:send a patch or series of patches by e-mail' + 'new:create a new patch and make it the topmost one' + 'pick:import a patch from a different branch or a commit object' + 'refresh:generate a new commit for the current patch' + 'rename:rename a patch in the series' + 'show:show the commit corresponding to a patch (or the current patch)' + 'sync:synchronise patches with a branch or a series' + 'add:add files or directories to the repository' + 'cp:copy files inside the repository' + 'diff:show the tree diff' + 'resolved:mark a file conflict as solved' + 'rm:remove files from the repository' + 'status:show the tree status' +) + +if (( CURRENT == 2 )); then + _describe -t commands 'stgit command' subcmds +else + _files +fi