push: add '--prune' option
[gitweb.git] / builtin / push.c
index 35cce532f2bb632e01c0de0a8e6f9e1395eece88..fdfb2c4512e98b0448f710bf3162ef948cd52ded 100644 (file)
@@ -261,6 +261,8 @@ int cmd_push(int argc, const char **argv, const char *prefix)
                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_BIT(0, "prune", &flags, "prune locally removed refs",
+                       TRANSPORT_PUSH_PRUNE),
                OPT_END()
        };