Skip to content

Commit be6d1b2

Browse files
pcloudsgitster
authored andcommitted
completion: use __gitcomp_builtin in _git_ls_tree
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1dc26db commit be6d1b2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,13 @@ _git_ls_remote ()
16291629

16301630
_git_ls_tree ()
16311631
{
1632+
case "$cur" in
1633+
--*)
1634+
__gitcomp_builtin ls-tree
1635+
return
1636+
;;
1637+
esac
1638+
16321639
__git_complete_file
16331640
}
16341641

0 commit comments

Comments
 (0)