diff options
author | Clint Adams <clint@users.sourceforge.net> | 2009-01-29 18:09:26 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2009-01-29 18:09:26 +0000 |
commit | 8489d8eb018df51ff7325432b9cfd5e23f5c22af (patch) | |
tree | e90d1b459f09f40782c97cf165ccd0b5785fda1a | |
parent | 2d61198457ff2031b2333c22704dd7495198a05a (diff) | |
download | zsh-8489d8eb018df51ff7325432b9cfd5e23f5c22af.tar.gz zsh-8489d8eb018df51ff7325432b9cfd5e23f5c22af.tar.xz zsh-8489d8eb018df51ff7325432b9cfd5e23f5c22af.zip |
Ingmar Vanhassel: 26473: complete "git commit --cleanup=" and "git commit --allow-empty".
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index a6cde2c39..f2794ac61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,8 @@ "git rebase" completion. * Ingmar Vanhassel: 26472: Completion/Unix/Command/_git: complete "git add --intent-to-add". + * Ingmar Vanhassel: 26473: Completion/Unix/Command/_git: complete + "git commit --cleanup=" and "git commit --allow-empty". 2009-01-29 Peter Stephenson <pws@csr.com> @@ -11063,5 +11065,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4543 $ +* $Revision: 1.4544 $ ***************************************************** diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index fe239a23e..5dffa0c0d 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -1637,8 +1637,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]' \ |