1. Stefan Saasen
  2. git

Commits

Junio C Hamano  committed dca93d2 Merge

Merge branch 'jk/complete-commit-c' into maint

* jk/complete-commit-c:
completion: complete refs for "git commit -c"

  • Participants
  • Parent commits 750a6ca, 6853975
  • Branches master

Comments (0)

Files changed (1)

File contrib/completion/git-completion.bash

View file
 {
 	__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