Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: use __gitcomp_builtin in _git_remote
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Fri, 9 Feb 2018 11:02:11 +0000
(18:02 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 9 Feb 2018 18:24:52 +0000
(10:24 -0800)
No new completable options!
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:
f1e1bdd
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index d8d9e8f0debbbac9eb491c323b439620db579104..6e600b7aa347a124af6febafb7e516f43aed4f2e 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-2612,7
+2612,7
@@
_git_remote ()
if [ -z "$subcommand" ]; then
case "$cur" in
--*)
if [ -z "$subcommand" ]; then
case "$cur" in
--*)
- __gitcomp
"--verbose"
+ __gitcomp
_builtin remote
;;
*)
__gitcomp "$subcommands"
;;
*)
__gitcomp "$subcommands"
@@
-2623,33
+2623,33
@@
_git_remote ()
case "$subcommand,$cur" in
add,--*)
case "$subcommand,$cur" in
add,--*)
- __gitcomp
"--track --master --fetch --tags --no-tags --mirror=
"
+ __gitcomp
_builtin remote_add "--no-tags
"
;;
add,*)
;;
set-head,--*)
;;
add,*)
;;
set-head,--*)
- __gitcomp
"--auto --delete"
+ __gitcomp
_builtin remote_set-head
;;
set-branches,--*)
;;
set-branches,--*)
- __gitcomp
"--add"
+ __gitcomp
_builtin remote_set-branches
;;
set-head,*|set-branches,*)
__git_complete_remote_or_refspec
;;
update,--*)
;;
set-head,*|set-branches,*)
__git_complete_remote_or_refspec
;;
update,--*)
- __gitcomp
"--prune"
+ __gitcomp
_builtin remote_update
;;
update,*)
__gitcomp "$(__git_get_config_variables "remotes")"
;;
set-url,--*)
;;
update,*)
__gitcomp "$(__git_get_config_variables "remotes")"
;;
set-url,--*)
- __gitcomp
"--push --add --delete"
+ __gitcomp
_builtin remote_set-url
;;
get-url,--*)
;;
get-url,--*)
- __gitcomp
"--push --all"
+ __gitcomp
_builtin remote_get-url
;;
prune,--*)
;;
prune,--*)
- __gitcomp
"--dry-run"
+ __gitcomp
_builtin remote_prune
;;
*)
__gitcomp_nl "$(__git_remotes)"
;;
*)
__gitcomp_nl "$(__git_remotes)"