From: Daniel Hahler <genml+zsh-workers@thequod.de>
To: zsh-workers@zsh.org
Subject: [PATCH] completion: git: provide --amend also with "message" group
Date: Wed, 13 May 2015 14:51:55 +0200 [thread overview]
Message-ID: <1431521515-8644-1-git-send-email-genml+zsh-workers@thequod.de> (raw)
From: Daniel Hahler <git@thequod.de>
Especially during a git rebase, you would use `git commit -m foo
--amend`.
---
Completion/Unix/Command/_git | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index c01333b..0510bbc 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -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] )) ||
--
2.4.0.dirty
next reply other threads:[~2015-05-13 12:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 12:51 Daniel Hahler [this message]
2015-05-23 10:15 ` Daniel Shahaf
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=1431521515-8644-1-git-send-email-genml+zsh-workers@thequod.de \
--to=genml+zsh-workers@thequod.de \
--cc=zsh-workers@zsh.org \
/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).