@matheusbsbs / matheus-bagliano / commits / afdeeb00ee
Fork 0

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>

Jeff King committed Aug 5, 2009 at 16:22 UTC afdeeb00eec471d86c9d421781ba8cb545be849c
2 files changed +2
builtin-push.c
+1
@@ -168,6 +168,7 @@ int cmd_push(int argc, const char **argv, const char *prefix)
168 const char *repo = NULL; /* default repository */
169
170 struct option options[] = {
171 + OPT_BIT('q', "quiet", &flags, "be quiet", TRANSPORT_PUSH_QUIET),
172 OPT_BIT('v', "verbose", &flags, "be verbose", TRANSPORT_PUSH_VERBOSE),
173 OPT_STRING( 0 , "repo", &repo, "repository", "repository"),
174 OPT_BIT( 0 , "all", &flags, "push all refs", TRANSPORT_PUSH_ALL),
transport.h
+1
@@ -36,6 +36,7 @@ struct transport {
36 #define TRANSPORT_PUSH_MIRROR 8
37 #define TRANSPORT_PUSH_VERBOSE 16
38 #define TRANSPORT_PUSH_PORCELAIN 32
39 +#define TRANSPORT_PUSH_QUIET 64
40
41 /* Returns a transport suitable for the url */
42 struct transport *transport_get(struct remote *, const char *);