Skip to content

Commit

Permalink
fetch: Allow transport -v -v -v to set verbosity to 3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
spearce authored and gitster committed Oct 31, 2009
1 parent 37a8768 commit cff7123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin-fetch.c
Expand Up @@ -665,7 +665,7 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)

transport = transport_get(remote, remote->url[0]);
if (verbosity >= 2)
transport->verbose = 1;
transport->verbose = verbosity <= 3 ? verbosity : 3;
if (verbosity < 0)
transport->verbose = -1;
if (upload_pack)
Expand Down
2 changes: 1 addition & 1 deletion transport.h
Expand Up @@ -25,7 +25,7 @@ struct transport {

int (*disconnect)(struct transport *connection);
char *pack_lockfile;
signed verbose : 2;
signed verbose : 3;
/* Force progress even if the output is not a tty */
unsigned progress : 1;
};
Expand Down

0 comments on commit cff7123

Please sign in to comment.