diff options
author | Teemu Matilainen <teemu.matilainen@iki.fi> | 2011-10-06 22:40:29 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-07 02:11:49 +0400 |
commit | f8e49e132c717df25f741f4af9ce1c79e1d74fb1 (patch) | |
tree | a9107ecaae43a1c00d6df8d6219255b348b91d11 /contrib | |
parent | ec014eac0e9e6f30cbbca616090fa2ecf74797e7 (diff) |
completion: unite --reuse-message and --reedit-message handling
Signed-off-by: Teemu Matilainen <teemu.matilainen@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/completion/git-completion.bash | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 840ae38760..43a7a36f06 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1287,12 +1287,8 @@ _git_commit () " "" "${cur##--cleanup=}" return ;; - --reuse-message=*) - __gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}" - return - ;; - --reedit-message=*) - __gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}" + --reuse-message=*|--reedit-message=*) + __gitcomp "$(__git_refs)" "" "${cur#*=}" return ;; --untracked-files=*) |