summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-03-24 21:35:24 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-03-25 09:35:23 -0700
commitbe6d1b24ad6dc33032a0a1d02d9e63d7db220afd (patch)
tree6dfe97cb70b026f090eb67baba9474d14af62fe5 /contrib/completion
parentcompletion: delete option-only completion commands (diff)
downloadtgif-be6d1b24ad6dc33032a0a1d02d9e63d7db220afd.tar.xz
completion: use __gitcomp_builtin in _git_ls_tree
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/completion')
-rw-r--r--contrib/completion/git-completion.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 0080932b29..6f53afa5e3 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1629,6 +1629,13 @@ _git_ls_remote ()
_git_ls_tree ()
{
+ case "$cur" in
+ --*)
+ __gitcomp_builtin ls-tree
+ return
+ ;;
+ esac
+
__git_complete_file
}