completion: use __gitcomp_builtin in _git_ls_tree
[gitweb.git] / contrib / completion / git-completion.bash
index f65cb5d1f949d8dfa538af5810120051404b5891..6f53afa5e3b5d69c8110dd5d2d85b3909d8fcd6a 100644 (file)
@@ -1505,16 +1505,6 @@ _git_fsck ()
        esac
 }
 
-_git_gc ()
-{
-       case "$cur" in
-       --*)
-               __gitcomp_builtin gc
-               return
-               ;;
-       esac
-}
-
 _git_gitk ()
 {
        _gitk
@@ -1639,6 +1629,13 @@ _git_ls_remote ()
 
 _git_ls_tree ()
 {
+       case "$cur" in
+       --*)
+               __gitcomp_builtin ls-tree
+               return
+               ;;
+       esac
+
        __git_complete_file
 }
 
@@ -1814,11 +1811,6 @@ _git_mv ()
        fi
 }
 
-_git_name_rev ()
-{
-       __gitcomp_builtin name-rev
-}
-
 _git_notes ()
 {
        local subcommands='add append copy edit get-ref list merge prune remove show'