Skip to content

Commit 1dc26db

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9f642a7 commit 1dc26db

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

contrib/completion/git-completion.bash

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,16 +1505,6 @@ _git_fsck ()
15051505
esac
15061506
}
15071507

1508-
_git_gc ()
1509-
{
1510-
case "$cur" in
1511-
--*)
1512-
__gitcomp_builtin gc
1513-
return
1514-
;;
1515-
esac
1516-
}
1517-
15181508
_git_gitk ()
15191509
{
15201510
_gitk
@@ -1814,11 +1804,6 @@ _git_mv ()
18141804
fi
18151805
}
18161806

1817-
_git_name_rev ()
1818-
{
1819-
__gitcomp_builtin name-rev
1820-
}
1821-
18221807
_git_notes ()
18231808
{
18241809
local subcommands='add append copy edit get-ref list merge prune remove show'

0 commit comments

Comments
 (0)