diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-03-24 21:35:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-25 18:35:25 +0200 |
commit | c55c4a5b6476073ef0f09665c6c1ef1e38980087 (patch) | |
tree | 72f0348361aaaa2a9c4e5b509252914f680cccb5 /contrib | |
parent | completion: use __gitcomp_builtin in _git_ls_tree (diff) | |
download | git-c55c4a5b6476073ef0f09665c6c1ef1e38980087.tar.xz git-c55c4a5b6476073ef0f09665c6c1ef1e38980087.zip |
completion: use __gitcomp_builtin in _git_cherry
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 6f53afa5e3..b2b79e0bd4 100644 --- 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 } |