1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

35098: completion: git: provide --amend also with "message" group

Especially during a git rebase, you would use `git commit -m foo
--amend`.
This commit is contained in:
Daniel Hahler 2015-05-28 20:23:37 +02:00
parent a711b2abef
commit da603d0a00
2 changed files with 7 additions and 2 deletions

View file

@ -681,14 +681,14 @@ _git-commit () {
'(-S --gpg-sign --no-gpg-sign)'{-S-,--gpg-sign=}'[GPG-sign the commit]::key id' \
'(-S --gpg-sign --no-gpg-sign)--no-gpg-sign[do not GPG-sign the commit]' \
'(-a --all --interactive -o --only -i --include *)--interactive[interactively update paths in the index file]' \
$amend_opt \
'*: :__git_ignore_line_inside_arguments __git_changed_files' \
- '(message)' \
{-C,--reuse-message=}'[use existing commit object with same log message]: :__git_commits' \
{-c,--reedit-message=}'[use existing commit object and edit log message]: :__git_commits' \
{-F,--file=}'[read commit message from given file]: :_files' \
{-m,--message=}'[use the given message as the commit message]:message' \
{-t,--template=}'[use file as a template commit message]:template:_files' \
$amend_opt
{-t,--template=}'[use file as a template commit message]:template:_files'
}
(( $+functions[_git-describe] )) ||