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>
Nguyễn Thái Ngọc Duy committed
Feb 9, 2018 at 18:02 UTC
ab6a11c580f50ac37d436510fa4c6984c588f85f
1 file changed
+8
-8
contrib/completion/git-completion.bash
+8
-8
@@ -2612,7 +2612,7 @@ _git_remote ()
2612
if [ -z "$subcommand" ]; then
2613
case "$cur" in
2614
--*)
2615
- __gitcomp "--verbose"
2615
+ __gitcomp_builtin remote
2616
;;
2617
*)
2618
__gitcomp "$subcommands"
@@ -2623,33 +2623,33 @@ _git_remote ()
2623
2624
case "$subcommand,$cur" in
2625
add,--*)
2626
- __gitcomp "--track --master --fetch --tags --no-tags --mirror="
2626
+ __gitcomp_builtin remote_add "--no-tags"
2627
;;
2628
add,*)
2629
;;
2630
set-head,--*)
2631
- __gitcomp "--auto --delete"
2631
+ __gitcomp_builtin remote_set-head
2632
;;
2633
set-branches,--*)
2634
- __gitcomp "--add"
2634
+ __gitcomp_builtin remote_set-branches
2635
;;
2636
set-head,*|set-branches,*)
2637
__git_complete_remote_or_refspec
2638
;;
2639
update,--*)
2640
- __gitcomp "--prune"
2640
+ __gitcomp_builtin remote_update
2641
;;
2642
update,*)
2643
__gitcomp "$(__git_get_config_variables "remotes")"
2644
;;
2645
set-url,--*)
2646
- __gitcomp "--push --add --delete"
2646
+ __gitcomp_builtin remote_set-url
2647
;;
2648
get-url,--*)
2649
- __gitcomp "--push --all"
2649
+ __gitcomp_builtin remote_get-url
2650
;;
2651
prune,--*)
2652
- __gitcomp "--dry-run"
2652
+ __gitcomp_builtin remote_prune
2653
;;
2654
*)
2655
__gitcomp_nl "$(__git_remotes)"