diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-14 17:02:35 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-14 17:02:35 +0100 |
commit | dca93d2b017184077104cf40566a7518fcf41ecb (patch) | |
tree | d5ac1c4b3164d4c4baf35207054079a0f2ed3b39 | |
parent | Merge branch 'jk/unify-exit-code-by-receiving-signal' into maint (diff) | |
parent | completion: complete refs for "git commit -c" (diff) | |
download | git-dca93d2b017184077104cf40566a7518fcf41ecb.tar.xz git-dca93d2b017184077104cf40566a7518fcf41ecb.zip |
Merge branch 'jk/complete-commit-c' into maint
* jk/complete-commit-c:
completion: complete refs for "git commit -c"
-rw-r--r-- | contrib/completion/git-completion.bash | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 0b77eb1fa4..a4c48e179e 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -971,6 +971,13 @@ _git_commit () { __git_has_doubledash && return + case "$prev" in + -c|-C) + __gitcomp_nl "$(__git_refs)" "" "${cur}" + return + ;; + esac + case "$cur" in --cleanup=*) __gitcomp "default strip verbatim whitespace |