completion: use __gitcomp_builtin in _git_push
The new completable options are: --atomic --exec= --ipv4 --ipv6 --no-verify --porcelain --progress --push-option --signed 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:
parent
32e64e507b
commit
f1e1bdd6bd
@ -548,7 +548,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
|
|||||||
{ OPTION_CALLBACK, 0, "recurse-submodules", &recurse_submodules, "check|on-demand|no",
|
{ OPTION_CALLBACK, 0, "recurse-submodules", &recurse_submodules, "check|on-demand|no",
|
||||||
N_("control recursive pushing of submodules"),
|
N_("control recursive pushing of submodules"),
|
||||||
PARSE_OPT_OPTARG, option_parse_recurse_submodules },
|
PARSE_OPT_OPTARG, option_parse_recurse_submodules },
|
||||||
OPT_BOOL( 0 , "thin", &thin, N_("use thin pack")),
|
OPT_BOOL_F( 0 , "thin", &thin, N_("use thin pack"), PARSE_OPT_NOCOMPLETE),
|
||||||
OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", N_("receive pack program")),
|
OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", N_("receive pack program")),
|
||||||
OPT_STRING( 0 , "exec", &receivepack, "receive-pack", N_("receive pack program")),
|
OPT_STRING( 0 , "exec", &receivepack, "receive-pack", N_("receive pack program")),
|
||||||
OPT_BIT('u', "set-upstream", &flags, N_("set upstream for git pull/status"),
|
OPT_BIT('u', "set-upstream", &flags, N_("set upstream for git pull/status"),
|
||||||
|
@ -1928,12 +1928,7 @@ _git_push ()
|
|||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "
|
__gitcomp_builtin push
|
||||||
--all --mirror --tags --dry-run --force --verbose
|
|
||||||
--quiet --prune --delete --follow-tags
|
|
||||||
--receive-pack= --repo= --set-upstream
|
|
||||||
--force-with-lease --force-with-lease= --recurse-submodules=
|
|
||||||
"
|
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user