Skip to content

Commit cff7123

Browse files
spearcegitster
authored andcommitted
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 <[email protected]> CC: Daniel Barkalow <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 37a8768 commit cff7123

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin-fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
665665

666666
transport = transport_get(remote, remote->url[0]);
667667
if (verbosity >= 2)
668-
transport->verbose = 1;
668+
transport->verbose = verbosity <= 3 ? verbosity : 3;
669669
if (verbosity < 0)
670670
transport->verbose = -1;
671671
if (upload_pack)

transport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct transport {
2525

2626
int (*disconnect)(struct transport *connection);
2727
char *pack_lockfile;
28-
signed verbose : 2;
28+
signed verbose : 3;
2929
/* Force progress even if the output is not a tty */
3030
unsigned progress : 1;
3131
};

0 commit comments

Comments
 (0)