Merge branch 'jk/complete-commit-c'

Complete "git commmit -c foo<TAB>" into a refname that begins with
"foo".

* jk/complete-commit-c:
  completion: complete refs for "git commit -c"
maint
Junio C Hamano 2013-01-05 23:41:53 -08:00
commit d2638e1561
1 changed files with 7 additions and 0 deletions

View File

@ -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