zsh-workers
 help / color / mirror / code / Atom feed
From: Ingmar Vanhassel <ingmar@exherbo.org>
To: Zsh Hackers' List <zsh-workers@sunsite.dk>
Cc: Ingmar Vanhassel <ingmar@exherbo.org>
Subject: [PATCH] Complete "git commit --cleanup=" and "git commit --allow-empty".
Date: Thu, 29 Jan 2009 12:21:48 +0000	[thread overview]
Message-ID: <1233231710-1204-7-git-send-email-ingmar@exherbo.org> (raw)
In-Reply-To: <1233231710-1204-6-git-send-email-ingmar@exherbo.org>

---
 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


  reply	other threads:[~2009-01-29 12:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-29 12:21 [PATCH] Updates to git completion Ingmar Vanhassel
2009-01-29 12:21 ` [PATCH] Add "git remote rename" completion Ingmar Vanhassel
2009-01-29 12:21   ` [PATCH] Add "git describe --tags" completion. Fix typos Ingmar Vanhassel
2009-01-29 12:21     ` [PATCH] Complete "git add --intent-to-add" Ingmar Vanhassel
2009-01-29 12:21       ` [PATCH] "git stage" is now a synonym for "git add". git diff: --staged is a synonym for --cached Ingmar Vanhassel
2009-01-29 12:21         ` [PATCH] Complete "git clone --verbose" Ingmar Vanhassel
2009-01-29 12:21           ` Ingmar Vanhassel [this message]
2009-01-29 12:21             ` [PATCH] Update "git rebase" completions Ingmar Vanhassel
2009-01-29 12:21               ` [PATCH] Update "git svn" completion Ingmar Vanhassel
2009-01-29 14:33         ` [PATCH] "git stage" is now a synonym for "git add". git diff: --staged is a synonym for --cached Richard Hartmann
2009-01-29 14:36 ` [PATCH] Updates to git completion Richard Hartmann
2009-01-29 14:40   ` Mikael Magnusson
2009-01-29 15:07     ` Richard Hartmann
2009-01-29 15:18       ` Nikolai Weibull
2009-02-02 14:48         ` Allan Caffee
2009-02-03 10:44     ` Doug Kearns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1233231710-1204-7-git-send-email-ingmar@exherbo.org \
    --to=ingmar@exherbo.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).