1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-27 06:11:06 +02:00

Ingmar Vanhassel: 26473: complete "git commit --cleanup=" and "git commit --allow-empty".

This commit is contained in:
Clint Adams 2009-01-29 18:09:26 +00:00
parent 2d61198457
commit 8489d8eb01
2 changed files with 8 additions and 1 deletions

View file

@ -32,6 +32,8 @@
"git rebase" completion. "git rebase" completion.
* Ingmar Vanhassel: 26472: Completion/Unix/Command/_git: complete * Ingmar Vanhassel: 26472: Completion/Unix/Command/_git: complete
"git add --intent-to-add". "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> 2009-01-29 Peter Stephenson <pws@csr.com>
@ -11063,5 +11065,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4543 $ * $Revision: 1.4544 $
***************************************************** *****************************************************

View file

@ -1637,8 +1637,13 @@ _git-clone () {
(( $+functions[_git-commit] )) || (( $+functions[_git-commit] )) ||
_git-commit () { _git-commit () {
_arguments -S \ _arguments -S \
'--allow-empty[allow recording an empty commit]' \
'(-a --all)'{-a,--all}'[update all paths in the index file]' \ '(-a --all)'{-a,--all}'[update all paths in the index file]' \
'--author[override the author name used in the commit]:author name' \ '--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]' \ '(-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)'{-i,--include}'[update the given files and commit the whole index]' \
'(-o --only -i --include)'{-o,--only}'[commit only the given files]' \ '(-o --only -i --include)'{-o,--only}'[commit only the given files]' \