zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] completion: git: provide --amend also with "message" group
@ 2015-05-13 12:51 Daniel Hahler
  2015-05-23 10:15 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Hahler @ 2015-05-13 12:51 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] completion: git: provide --amend also with "message" group
  2015-05-13 12:51 [PATCH] completion: git: provide --amend also with "message" group Daniel Hahler
@ 2015-05-23 10:15 ` Daniel Shahaf
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2015-05-23 10:15 UTC (permalink / raw)
  To: zsh-workers

Daniel Hahler wrote on Wed, May 13, 2015 at 14:51:55 +0200:
> +    $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'

I notice you haven't pushed this yet.  Any particular reason not to push it?

Cheers,

Daniel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-23 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13 12:51 [PATCH] completion: git: provide --amend also with "message" group Daniel Hahler
2015-05-23 10:15 ` Daniel Shahaf

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).