From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18101 invoked from network); 28 Jun 2007 15:00:01 -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.5 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; 28 Jun 2007 15:00:01 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 62658 invoked from network); 28 Jun 2007 14:59:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Jun 2007 14:59:53 -0000 Received: (qmail 503 invoked by alias); 28 Jun 2007 14:59:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23609 Received: (qmail 488 invoked from network); 28 Jun 2007 14:59:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Jun 2007 14:59:49 -0000 Received: (qmail 62389 invoked from network); 28 Jun 2007 14:59:49 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 28 Jun 2007 14:59:46 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 1D6225C3C6; Thu, 28 Jun 2007 10:59:44 -0400 (EDT) Date: Thu, 28 Jun 2007 10:59:45 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: _git clean Message-ID: <20070628145945.GA28208@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.5.13 (2006-08-11) More from Mr. Weibull's repo. Index: Completion/Unix/Command/_git =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v retrieving revision 1.7 diff -u -r1.7 _git --- Completion/Unix/Command/_git 24 Jun 2007 15:35:39 -0000 1.7 +++ Completion/Unix/Command/_git 28 Jun 2007 14:58:47 -0000 @@ -1,4 +1,4 @@ -#compdef git git-annotate git-apply git-checkout-index git-commit-tree git= -hash-object git-index-pack git-init-db git-merge-index git-mktag git-pack-= objects git-prune-packed git-read-tree git-unpack-objects git-update-index = git-write-tree git-cat-file git-diff-index git-diff-files git-diff-stages g= it-diff-tree git-fsck-objects git-ls-files git-ls-tree git-merge-base git-n= ame-rev git-rev-list git-show-index git-tar-tree git-unpack-file git-var gi= t-verify-pack git-clone-pack git-fetch-pack git-http-fetch git-local-fetch = git-peek-remote git-receive-pack git-send-pack git-ssh-fetch git-ssh-upload= git-update-server-info git-upload-pack git-add git-am git-applymbox git-bi= sect git-branch git-checkout git-cherry-pick git-clone git-commit git-diff = git-fetch git-format-patch git-grep git-log git-ls-remote git-merge git-mv = git-octopus git-pull git-push git-rebase git-repack git-reset git-resolve g= it-revert git-shortlog git-show-branch git-status git-verify-tag git-whatch= anged git-applypatch git-archimport git-archive git-convert-objects git-cvs= import git-lost-found git-merge-one-file git-prune git-relink git-svnimport= git-symbolic-ref git-tag git-update-ref git-check-ref-format git-cherry gi= t-count-objects git-daemon git-get-tar-commit-id git-mailinfo git-mailsplit= git-patch-id git-request-pull git-send-email git-stripspace +#compdef git git-annotate git-apply git-checkout-index git-clean git-commi= t-tree git-hash-object git-index-pack git-init-db git-merge-index git-mktag= git-pack-objects git-prune-packed git-read-tree git-unpack-objects git-upd= ate-index git-write-tree git-cat-file git-diff-index git-diff-files git-dif= f-stages git-diff-tree git-fsck-objects git-ls-files git-ls-tree git-merge-= base git-name-rev git-rev-list git-show-index git-tar-tree git-unpack-file = git-var git-verify-pack git-clone-pack git-fetch-pack git-http-fetch git-lo= cal-fetch git-peek-remote git-receive-pack git-send-pack git-ssh-fetch git-= ssh-upload git-update-server-info git-upload-pack git-add git-am git-applym= box git-bisect git-branch git-checkout git-cherry-pick git-clone git-commit= git-diff git-fetch git-format-patch git-grep git-log git-ls-remote git-mer= ge git-mv git-octopus git-pull git-push git-rebase git-repack git-reset git= -resolve git-revert git-shortlog git-show-branch git-status git-verify-tag = git-whatchanged git-applypatch git-archimport git-archive git-convert-objec= ts git-cvsimport git-lost-found git-merge-one-file git-prune git-relink git= -svnimport git-symbolic-ref git-tag git-update-ref git-check-ref-format git= -cherry git-count-objects git-daemon git-get-tar-commit-id git-mailinfo git= -mailsplit git-patch-id git-request-pull git-send-email git-stripspace =20 # Commands not completed: # git-sh-setup @@ -96,6 +96,7 @@ 'checkout-index:copy files from the index to the working directory' 'cherry:find commits not merged upstream' 'cherry-pick:cherry-pick the effect of an existing commit' + 'clean:remove untracked files from the working tree' 'clone:clones a repository into a new directory' 'clone-pack:clones a repository into the current repository (transport= )' 'commit:record changes to the repository' @@ -247,6 +248,15 @@ '*:file:_files' && ret=3D0 } =20 +_git-clean () { + _arguments \ + '-d[remove untracked directories]' \ + '-n[just show what would be done]' \ + '-q[be quiet, only report errors]' \ + '(-X -x)-x[do use ignore rules]' \ + '(-X -x)-X[remove only files ignored by git]' && ret=3D0 +} + _git-commit-tree () { if (( CURRENT =3D=3D 2 )); then __git_trees && ret=3D0