Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Complete "git commit --cleanup=" and "git commit --allow-empty".
- X-seq: zsh-workers 26473
- From: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxxxxx>
- Subject: [PATCH] Complete "git commit --cleanup=" and "git commit --allow-empty".
- Date: Thu, 29 Jan 2009 12:21:48 +0000
- Cc: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- In-reply-to: <1233231710-1204-6-git-send-email-ingmar@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1233231710-1204-1-git-send-email-ingmar@xxxxxxxxxxx> <1233231710-1204-2-git-send-email-ingmar@xxxxxxxxxxx> <1233231710-1204-3-git-send-email-ingmar@xxxxxxxxxxx> <1233231710-1204-4-git-send-email-ingmar@xxxxxxxxxxx> <1233231710-1204-5-git-send-email-ingmar@xxxxxxxxxxx> <1233231710-1204-6-git-send-email-ingmar@xxxxxxxxxxx>
---
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author