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:23 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-03-25 09:35:22 -0700
commit1dc26db1ffaee5a9dd9cc17667f7898f097cc8a7 (patch)
tree6530f19d975b534dbd50f9d506c309c26ab94561 /contrib/completion
parentcompletion: add --option completion for most builtin commands (diff)
downloadtgif-1dc26db1ffaee5a9dd9cc17667f7898f097cc8a7.tar.xz
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>
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/git-completion.bash15
1 files changed, 0 insertions, 15 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index f65cb5d1f9..0080932b29 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1505,16 +1505,6 @@ _git_fsck ()
esac
}
-_git_gc ()
-{
- case "$cur" in
- --*)
- __gitcomp_builtin gc
- return
- ;;
- esac
-}
-
_git_gitk ()
{
_gitk
@@ -1814,11 +1804,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'