git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
be6d1b2
)
completion: use __gitcomp_builtin in _git_cherry
author
Nguyễn Thái Ngọc Duy
<redacted>
Sat, 24 Mar 2018 20:35:25 +0000
(21:35 +0100)
committer
Junio C Hamano
<redacted>
Sun, 25 Mar 2018 16:35:25 +0000
(09:35 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
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
}
git clone https://git.99rst.org/PROJECT