Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: delete option-only completion commands
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sat, 24 Mar 2018 20:35:23 +0000
(21:35 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 25 Mar 2018 16:35:22 +0000
(09:35 -0700)
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>
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
9f642a7
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index f65cb5d1f949d8dfa538af5810120051404b5891..0080932b2971d7151b052058bc204241781271c2 100644
(file)
--- 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'