Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: use __gitcomp_builtin in _git_cherry
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sat, 24 Mar 2018 20:35:25 +0000
(21:35 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 25 Mar 2018 16:35:25 +0000
(09:35 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
be6d1b2
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 6f53afa5e3b5d69c8110dd5d2d85b3909d8fcd6a..b2b79e0bd41365a2f089889ea8d6ac07b9d78491 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-1286,6
+1286,12
@@
_git_checkout ()
_git_cherry ()
{
+ case "$cur" in
+ --*)
+ __gitcomp_builtin cherry
+ return
+ esac
+
__git_complete_refs
}