Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/complete-commit-c' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 14 Jan 2013 16:02:35 +0000
(08:02 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 14 Jan 2013 16:02:35 +0000
(08:02 -0800)
* jk/complete-commit-c:
completion: complete refs for "git commit -c"
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
750a6ca
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 0b77eb1fa4074fb8ed5ef4cd4c37513f49804e7e..a4c48e179eb778077462a812b491e762e284486c 100644
(file)
--- 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