summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f55e41)
raw | patch | inline | side by side (parent: 3f55e41)
author | Jeff King <peff@peff.net> | |
Wed, 5 Aug 2009 20:22:19 +0000 (16:22 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 6 Aug 2009 03:14:07 +0000 (20:14 -0700) |
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>
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>
builtin-push.c | patch | blob | history | |
transport.h | patch | blob | history |
diff --git a/builtin-push.c b/builtin-push.c
index 1d92e22f0aef914217c6a68e2597426bb529e4ba..bc0c91aa4e4e15a5a88f988d0cea5312bb60e7cd 100644 (file)
--- a/builtin-push.c
+++ b/builtin-push.c
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),
diff --git a/transport.h b/transport.h
index 51b539778c2f63591c4f032e311372b2e9975a37..f1d3ebf67496926e0da6926e027c005d87758b0d 100644 (file)
--- a/transport.h
+++ b/transport.h
#define TRANSPORT_PUSH_MIRROR 8
#define TRANSPORT_PUSH_VERBOSE 16
#define TRANSPORT_PUSH_PORCELAIN 32
+#define TRANSPORT_PUSH_QUIET 64
/* Returns a transport suitable for the url */
struct transport *transport_get(struct remote *, const char *);