summaryrefslogtreecommitdiff
path: root/builtin-push.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-08-05 16:22:19 -0400
committerJunio C Hamano <gitster@pobox.com>2009-08-05 20:14:07 -0700
commitafdeeb00eec471d86c9d421781ba8cb545be849c (patch)
treee4fd719850d6221962d2e2466620c4e0f086e704 /builtin-push.c
parent3f55e4107f7906134df029f9a5c44864f9258110 (diff)
downloadgit-afdeeb00eec471d86c9d421781ba8cb545be849c.tar.gz
push: add --quiet flag
Some transports produce output even without "--verbose" turned on. This provides a way to tell them to be more quiet (whereas simply redirecting might lose error messages). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-push.c')
-rw-r--r--builtin-push.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-push.c b/builtin-push.c
index 1d92e22f0a..bc0c91aa4e 100644
--- a/builtin-push.c
+++ b/builtin-push.c
@@ -168,6 +168,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
const char *repo = NULL; /* default repository */
struct option options[] = {
+ OPT_BIT('q', "quiet", &flags, "be quiet", TRANSPORT_PUSH_QUIET),
OPT_BIT('v', "verbose", &flags, "be verbose", TRANSPORT_PUSH_VERBOSE),
OPT_STRING( 0 , "repo", &repo, "repository", "repository"),
OPT_BIT( 0 , "all", &flags, "push all refs", TRANSPORT_PUSH_ALL),