Skip to content

Commit ab6a11c

Browse files
pcloudsgitster
authored andcommitted
completion: use __gitcomp_builtin in _git_remote
No new completable options! Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f1e1bdd commit ab6a11c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

contrib/completion/git-completion.bash

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ _git_remote ()
26122612
if [ -z "$subcommand" ]; then
26132613
case "$cur" in
26142614
--*)
2615-
__gitcomp "--verbose"
2615+
__gitcomp_builtin remote
26162616
;;
26172617
*)
26182618
__gitcomp "$subcommands"
@@ -2623,33 +2623,33 @@ _git_remote ()
26232623

26242624
case "$subcommand,$cur" in
26252625
add,--*)
2626-
__gitcomp "--track --master --fetch --tags --no-tags --mirror="
2626+
__gitcomp_builtin remote_add "--no-tags"
26272627
;;
26282628
add,*)
26292629
;;
26302630
set-head,--*)
2631-
__gitcomp "--auto --delete"
2631+
__gitcomp_builtin remote_set-head
26322632
;;
26332633
set-branches,--*)
2634-
__gitcomp "--add"
2634+
__gitcomp_builtin remote_set-branches
26352635
;;
26362636
set-head,*|set-branches,*)
26372637
__git_complete_remote_or_refspec
26382638
;;
26392639
update,--*)
2640-
__gitcomp "--prune"
2640+
__gitcomp_builtin remote_update
26412641
;;
26422642
update,*)
26432643
__gitcomp "$(__git_get_config_variables "remotes")"
26442644
;;
26452645
set-url,--*)
2646-
__gitcomp "--push --add --delete"
2646+
__gitcomp_builtin remote_set-url
26472647
;;
26482648
get-url,--*)
2649-
__gitcomp "--push --all"
2649+
__gitcomp_builtin remote_get-url
26502650
;;
26512651
prune,--*)
2652-
__gitcomp "--dry-run"
2652+
__gitcomp_builtin remote_prune
26532653
;;
26542654
*)
26552655
__gitcomp_nl "$(__git_remotes)"

0 commit comments

Comments
 (0)