From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9702 invoked from network); 22 Jun 2007 10:49:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) 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.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Jun 2007 10:49:43 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 78946 invoked from network); 22 Jun 2007 10:49:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jun 2007 10:49:35 -0000 Received: (qmail 8834 invoked by alias); 22 Jun 2007 10:49:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23580 Received: (qmail 8824 invoked from network); 22 Jun 2007 10:49:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Jun 2007 10:49:32 -0000 Received: (qmail 78607 invoked from network); 22 Jun 2007 10:49:32 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 22 Jun 2007 10:49:28 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 830555C412; Fri, 22 Jun 2007 06:49:26 -0400 (EDT) Date: Fri, 22 Jun 2007 06:49:26 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: _guilt Message-ID: <20070622104926.GA15771@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.13 (2006-08-11) "Git Quilt" Index: Completion/Unix/Command/_guilt =================================================================== RCS file: Completion/Unix/Command/_guilt diff -N Completion/Unix/Command/_guilt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Completion/Unix/Command/_guilt 22 Jun 2007 10:47:46 -0000 @@ -0,0 +1,43 @@ +#compdef guilt guilt-add guilt-applied guilt-delete guilt-files guilt-fold guilt-fork guilt-header guilt-help guilt-import-commit guilt-import guilt-init guilt-new guilt-next guilt-patchbomb guilt-pop guilt-prev guilt-push guilt-rebase guilt-refresh guilt-rm guilt-series guilt-status guilt-top guilt-unapplied + +local -a _guilt_commands + +_guilt_commands=( +'add:add a file to git and guilt' +'applied:list applied patches' +'delete:delete a patch' +'files:print the list of files that the topmost patch changes' +'fold:fold a specified patch into the topmost applied patch' +'fork:fork the topmost applied patch' +'header:print a patch header' +'help:open man page of a guilt command' +'import-commit:import one or more commits as patches' +'import:import specified patch file' +'init:initialize guilt for use in a git repository' +'new:create a new patch' +'next:output the name of next patch to be pushed' +'patchbomb:email a series of commits interactively' +'pop:pop patches from the tree' +'prev:output name of second topmost applied patch' +'push:push patches onto the tree' +'rebase:rebase pushed patches' +'refresh:refresh topmost applied patch' +'rm:remove a file from the git tree and guilt' +'series:print the stack of patches' +'status:print the status of files since the last refresh' +'top:output name of topmost applied patch' +'unapplied:list all unapplied patches' +) + +case "$service" in + (guilt) + if (( CURRENT == 2 )); then + _describe -t commands 'guilt command' _guilt_commands && ret=0 + else + _files + fi + ;; + (*) + _files + ;; +esac