From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19304 invoked from network); 29 Jan 2009 12:23:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Jan 2009 12:23:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 71138 invoked from network); 29 Jan 2009 12:22:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jan 2009 12:22:47 -0000 Received: (qmail 9689 invoked by alias); 29 Jan 2009 12:22:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26473 Received: (qmail 9630 invoked from network); 29 Jan 2009 12:22:06 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Jan 2009 12:22:06 -0000 Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 8A3A080293E7 for ; Thu, 29 Jan 2009 13:21:59 +0100 (CET) Received: from ingmar by bach.exherbo.org with local (Exim 4.69) (envelope-from ) id 1LSVu3-0000L6-4v; Thu, 29 Jan 2009 12:21:51 +0000 From: Ingmar Vanhassel To: Zsh Hackers' List Cc: Ingmar Vanhassel Subject: [PATCH] Complete "git commit --cleanup=" and "git commit --allow-empty". Date: Thu, 29 Jan 2009 12:21:48 +0000 Message-Id: <1233231710-1204-7-git-send-email-ingmar@exherbo.org> X-Mailer: git-send-email 1.6.0.1 In-Reply-To: <1233231710-1204-6-git-send-email-ingmar@exherbo.org> References: <1233231710-1204-1-git-send-email-ingmar@exherbo.org> <1233231710-1204-2-git-send-email-ingmar@exherbo.org> <1233231710-1204-3-git-send-email-ingmar@exherbo.org> <1233231710-1204-4-git-send-email-ingmar@exherbo.org> <1233231710-1204-5-git-send-email-ingmar@exherbo.org> <1233231710-1204-6-git-send-email-ingmar@exherbo.org> X-Virus-Scanned: ClamAV 0.92.1/8918/Thu Jan 29 12:42:19 2009 on bifrost X-Virus-Status: Clean --- Completion/Unix/Command/_git | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 7649b21..cf69ce8 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -1638,8 +1638,13 @@ _git-clone () { (( $+functions[_git-commit] )) || _git-commit () { _arguments -S \ + '--allow-empty[allow recording an empty commit]' \ '(-a --all)'{-a,--all}'[update all paths in the index file]' \ '--author[override the author name used in the commit]:author name' \ + '--cleanup=-[specify how the commit message should be cleaned up]:mode:((verbatim\:"don'\''t change the commit message at all" + whitespace\:"remove leading and trailing whitespace lines" + strip\:"remove both whitespace and commentary lines" + default\:"act as '\''strip'\'' if the message is to be edited and as '\''whitespace'\'' otherwise"))' \ '(-e --edit)'{-e,--edit}'[edit the commit message before committing]' \ '(-o --only -i --include)'{-i,--include}'[update the given files and commit the whole index]' \ '(-o --only -i --include)'{-o,--only}'[commit only the given files]' \ -- 1.6.0.1