From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23507 invoked by alias); 13 May 2015 12:52:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35098 Received: (qmail 3543 invoked from network); 13 May 2015 12:52:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1431521523; bh=OhoKkbWT63B9eYb YGS2NyPIA364OCLULD3cEXW/P9rE=; b=QNHlvBxOfacs4Mo7oRjmoWB4slKXlDI QiQAPAjDbxIlJjRaNWBZ2nQW+Z9zYoyuBcaMk6XJppVQysUkvyjAdg3mTEIN99ZY YKdIgn1QdFI0BiFttFfQt9jyBmscANzQ3h40HIwI/JHE2WBd7QnvchL/pxDjSMsB OA2HWTasF9TM= From: Daniel Hahler To: zsh-workers@zsh.org Subject: [PATCH] completion: git: provide --amend also with "message" group Date: Wed, 13 May 2015 14:51:55 +0200 Message-Id: <1431521515-8644-1-git-send-email-genml+zsh-workers@thequod.de> X-Mailer: git-send-email 2.4.0.dirty From: Daniel Hahler 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