Skip to content

Commit f1e1bdd

Browse files
pcloudsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 32e64e5 commit f1e1bdd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

builtin/push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
548548
{ OPTION_CALLBACK, 0, "recurse-submodules", &recurse_submodules, "check|on-demand|no",
549549
N_("control recursive pushing of submodules"),
550550
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),
552552
OPT_STRING( 0 , "receive-pack", &receivepack, "receive-pack", N_("receive pack program")),
553553
OPT_STRING( 0 , "exec", &receivepack, "receive-pack", N_("receive pack program")),
554554
OPT_BIT('u', "set-upstream", &flags, N_("set upstream for git pull/status"),

contrib/completion/git-completion.bash

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,12 +1928,7 @@ _git_push ()
19281928
return
19291929
;;
19301930
--*)
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
19371932
return
19381933
;;
19391934
esac

0 commit comments

Comments
 (0)