completion: use __gitcomp_builtin in _git_remote
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>
This commit is contained in:

committed by
Junio C Hamano

parent
f1e1bdd6bd
commit
ab6a11c580
@ -2612,7 +2612,7 @@ _git_remote ()
|
|||||||
if [ -z "$subcommand" ]; then
|
if [ -z "$subcommand" ]; then
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "--verbose"
|
__gitcomp_builtin remote
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__gitcomp "$subcommands"
|
__gitcomp "$subcommands"
|
||||||
@ -2623,33 +2623,33 @@ _git_remote ()
|
|||||||
|
|
||||||
case "$subcommand,$cur" in
|
case "$subcommand,$cur" in
|
||||||
add,--*)
|
add,--*)
|
||||||
__gitcomp "--track --master --fetch --tags --no-tags --mirror="
|
__gitcomp_builtin remote_add "--no-tags"
|
||||||
;;
|
;;
|
||||||
add,*)
|
add,*)
|
||||||
;;
|
;;
|
||||||
set-head,--*)
|
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,*)
|
set-head,*|set-branches,*)
|
||||||
__git_complete_remote_or_refspec
|
__git_complete_remote_or_refspec
|
||||||
;;
|
;;
|
||||||
update,--*)
|
update,--*)
|
||||||
__gitcomp "--prune"
|
__gitcomp_builtin remote_update
|
||||||
;;
|
;;
|
||||||
update,*)
|
update,*)
|
||||||
__gitcomp "$(__git_get_config_variables "remotes")"
|
__gitcomp "$(__git_get_config_variables "remotes")"
|
||||||
;;
|
;;
|
||||||
set-url,--*)
|
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)"
|
||||||
|
Reference in New Issue
Block a user