diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2010-02-24 20:50:24 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-24 08:35:44 -0800 |
commit | 8afd8dc065c54d3c8d8e0397506aa99261703414 (patch) | |
tree | d6284c214be5d149ff0b86cb156dce816d57b855 /transport.c | |
parent | bde873c52914b40377a12764cab926ee974c3f32 (diff) | |
download | git-8afd8dc065c54d3c8d8e0397506aa99261703414.tar.gz |
push: support multiple levels of verbosity
Remove the flags TRANSPORT_PUSH_QUIET and TRANSPORT_PUSH_VERBOSE; use
transport->verbose instead to determine verbosity for pushing.
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/transport.c b/transport.c index 1632c4d0aa..0655f65c1b 100644 --- a/transport.c +++ b/transport.c @@ -788,8 +788,8 @@ static int git_transport_push(struct transport *transport, struct ref *remote_re args.send_mirror = !!(flags & TRANSPORT_PUSH_MIRROR); args.force_update = !!(flags & TRANSPORT_PUSH_FORCE); args.use_thin_pack = data->options.thin; - args.verbose = !!(flags & TRANSPORT_PUSH_VERBOSE); - args.quiet = !!(flags & TRANSPORT_PUSH_QUIET); + args.verbose = (transport->verbose > 0); + args.quiet = (transport->verbose < 0); args.dry_run = !!(flags & TRANSPORT_PUSH_DRY_RUN); ret = send_pack(&args, data->fd, data->conn, remote_refs, @@ -1039,8 +1039,8 @@ int transport_push(struct transport *transport, transport->get_refs_list(transport, 1); struct ref *local_refs = get_local_heads(); int match_flags = MATCH_REFS_NONE; - int verbose = flags & TRANSPORT_PUSH_VERBOSE; - int quiet = flags & TRANSPORT_PUSH_QUIET; + int verbose = (transport->verbose > 0); + int quiet = (transport->verbose < 0); int porcelain = flags & TRANSPORT_PUSH_PORCELAIN; int pretend = flags & TRANSPORT_PUSH_DRY_RUN; int ret, err; |