fetch: Allow transport -v -v -v to set verbosity to 3
Helpers might want a higher level of verbosity than just +1 (the porcelain default setting) and +2 (-v -v). Expand the field to allow verbosity in the range -1..3. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> CC: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Shawn O. Pearce committed
Oct 30, 2009 at 17:47 UTC
cff7123c11aa2b1a849a46028d60b4bc0ab54c51
2 files changed
+2
-2
builtin-fetch.c
+1
-1
@@ -665,7 +665,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
665
666
transport = transport_get(remote, remote->url[0]);
667
if (verbosity >= 2)
668
- transport->verbose = 1;
668
+ transport->verbose = verbosity <= 3 ? verbosity : 3;
669
if (verbosity < 0)
670
transport->verbose = -1;
671
if (upload_pack)
transport.h
+1
-1
@@ -25,7 +25,7 @@ struct transport {
25
26
int (*disconnect)(struct transport *connection);
27
char *pack_lockfile;
28
- signed verbose : 2;
28
+ signed verbose : 3;
29
/* Force progress even if the output is not a tty */
30
unsigned progress : 1;
31
};