X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fpush.c;h=d315475f16c96a831a11c2aebf00ada40b7c9663;hb=af050219e44051426179248614a046896b5d40c0;hp=35cce532f2bb632e01c0de0a8e6f9e1395eece88;hpb=110c511dbeff65f7ae92216cf1d976a9093d911f;p=git.git diff --git a/builtin/push.c b/builtin/push.c index 35cce532f..d315475f1 100644 --- a/builtin/push.c +++ b/builtin/push.c @@ -19,7 +19,7 @@ static int thin; static int deleterefs; static const char *receivepack; static int verbosity; -static int progress; +static int progress = -1; static const char **refspec; static int refspec_nr; @@ -260,7 +260,9 @@ int cmd_push(int argc, const char **argv, const char *prefix) OPT_STRING( 0 , "exec", &receivepack, "receive-pack", "receive pack program"), OPT_BIT('u', "set-upstream", &flags, "set upstream for git pull/status", TRANSPORT_PUSH_SET_UPSTREAM), - OPT_BOOLEAN(0, "progress", &progress, "force progress reporting"), + OPT_BOOL(0, "progress", &progress, "force progress reporting"), + OPT_BIT(0, "prune", &flags, "prune locally removed refs", + TRANSPORT_PUSH_PRUNE), OPT_END() };