diff options
author | Clemens Buchacher <drizzd@aon.at> | 2012-02-13 21:17:15 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-13 13:06:53 -0800 |
commit | 01fdc21f6e90f56fc5a49cbba751d9ead19b2f03 (patch) | |
tree | 7a8503c31417735d5765ddd1c2a63749e254d513 /builtin/clone.c | |
parent | 58d4203aa617293d1dc3746a1ea33d84eb766e0f (diff) | |
download | git-01fdc21f6e90f56fc5a49cbba751d9ead19b2f03.tar.gz |
push/fetch/clone --no-progress suppresses progress outputcb/transfer-no-progress
By default, progress output is disabled if stderr is not a terminal.
The --progress option can be used to force progress output anyways.
Conversely, --no-progress does not force progress output. In particular,
if stderr is a terminal, progress output is enabled.
This is unintuitive. Change --no-progress to force output off.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 86db954730..b9e882d302 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -45,7 +45,7 @@ static char *option_branch = NULL; static const char *real_git_dir; static char *option_upload_pack = "git-upload-pack"; static int option_verbosity; -static int option_progress; +static int option_progress = -1; static struct string_list option_config; static struct string_list option_reference; @@ -60,8 +60,8 @@ static int opt_parse_reference(const struct option *opt, const char *arg, int un static struct option builtin_clone_options[] = { OPT__VERBOSITY(&option_verbosity), - OPT_BOOLEAN(0, "progress", &option_progress, - "force progress reporting"), + OPT_BOOL(0, "progress", &option_progress, + "force progress reporting"), OPT_BOOLEAN('n', "no-checkout", &option_no_checkout, "don't create a checkout"), OPT_BOOLEAN(0, "bare", &option_bare, "create a bare repository"), |