Skip to content

Commit d2638e1

Browse files
committed
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"
2 parents f7b3652 + 6853975 commit d2638e1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

contrib/completion/git-completion.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,13 @@ _git_commit ()
971971
{
972972
__git_has_doubledash && return
973973

974+
case "$prev" in
975+
-c|-C)
976+
__gitcomp_nl "$(__git_refs)" "" "${cur}"
977+
return
978+
;;
979+
esac
980+
974981
case "$cur" in
975982
--cleanup=*)
976983
__gitcomp "default strip verbatim whitespace

0 commit comments

Comments
 (0)