completion: delete option-only completion commands
The new function __git_complete_common can take over this job with less code to maintain. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Mar 24, 2018 at 21:35 UTC
1dc26db1ffaee5a9dd9cc17667f7898f097cc8a7
1 file changed
-15
contrib/completion/git-completion.bash
-15
@@ -1505,16 +1505,6 @@ _git_fsck ()
1505
esac
1506
}
1507
1508
-_git_gc ()
1509
-{
1510
- case "$cur" in
1511
- --*)
1512
- __gitcomp_builtin gc
1513
- return
1514
- ;;
1515
- esac
1516
-}
1517
-
1508
_git_gitk ()
1509
{
1510
_gitk
@@ -1814,11 +1804,6 @@ _git_mv ()
1804
fi
1805
}
1806
1817
-_git_name_rev ()
1818
-{
1819
- __gitcomp_builtin name-rev
1820
-}
1821
-
1807
_git_notes ()
1808
{
1809
local subcommands='add append copy edit get-ref list merge prune remove show'