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>

Nguyễn Thái Ngọc Duy committed Feb 9, 2018 at 18:02 UTC f1e1bdd6bd9615b2372a5c682f8a3459a037a27c
2 files changed +2 -7
builtin/push.c
+1 -1
@@ -548,7 +548,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
548 { OPTION_CALLBACK, 0, "recurse-submodules", &recurse_submodules, "check|on-demand|no",
549 N_("control recursive pushing of submodules"),
550 PARSE_OPT_OPTARG, option_parse_recurse_submodules },
551 - OPT_BOOL( 0 , "thin", &thin, N_("use thin pack")),
551 + OPT_BOOL_F( 0 , "thin", &thin, N_("use thin pack"), PARSE_OPT_NOCOMPLETE),
552 OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", N_("receive pack program")),
553 OPT_STRING( 0 , "exec", &receivepack, "receive-pack", N_("receive pack program")),
554 OPT_BIT('u', "set-upstream", &flags, N_("set upstream for git pull/status"),
contrib/completion/git-completion.bash
+1 -6
@@ -1928,12 +1928,7 @@ _git_push ()
1928 return
1929 ;;
1930 --*)
1931 - __gitcomp "
1932 - --all --mirror --tags --dry-run --force --verbose
1933 - --quiet --prune --delete --follow-tags
1934 - --receive-pack= --repo= --set-upstream
1935 - --force-with-lease --force-with-lease= --recurse-submodules=
1936 - "
1931 + __gitcomp_builtin push
1932 return
1933 ;;
1934 esac