diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-14 08:02:35 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-14 08:02:35 -0800 |
commit | dca93d2b017184077104cf40566a7518fcf41ecb (patch) | |
tree | d5ac1c4b3164d4c4baf35207054079a0f2ed3b39 | |
parent | 750a6cacf49dd57a4b4891ffdbd63191180273da (diff) | |
parent | 68539758579b3bd1f07fb9e1d800e7875db76c5c (diff) | |
download | git-dca93d2b017184077104cf40566a7518fcf41ecb.tar.gz git-dca93d2b017184077104cf40566a7518fcf41ecb.tar.xz |
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 0b77eb1fa..a4c48e179 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 |