diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-19 16:07:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-19 16:07:07 -0700 |
commit | adcb2e0f466aa39cc5f15d5a76d1151f6c47daf2 (patch) | |
tree | f02b40f639e9e2b14e2eddb26e7845b1bc963edb /builtin-clone.c | |
parent | 449acfababda44368227904c3fd1378f23541a6f (diff) | |
parent | 21188b1eafd3741fda0f7905dc997279a17b50ba (diff) | |
download | git-adcb2e0f466aa39cc5f15d5a76d1151f6c47daf2.tar.gz git-adcb2e0f466aa39cc5f15d5a76d1151f6c47daf2.tar.xz |
Merge branch 'mv/clonev'
* mv/clonev:
Implement git clone -v
Diffstat (limited to 'builtin-clone.c')
-rw-r--r-- | builtin-clone.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-clone.c b/builtin-clone.c index 1ddc14b9c..8e1a1d399 100644 --- a/builtin-clone.c +++ b/builtin-clone.c @@ -38,9 +38,11 @@ static int option_local, option_no_hardlinks, option_shared; static char *option_template, *option_reference, *option_depth; static char *option_origin = NULL; static char *option_upload_pack = "git-upload-pack"; +static int option_verbose; static struct option builtin_clone_options[] = { OPT__QUIET(&option_quiet), + OPT__VERBOSE(&option_verbose), OPT_BOOLEAN('n', "no-checkout", &option_no_checkout, "don't create a checkout"), OPT_BOOLEAN(0, "bare", &option_bare, "create a bare repository"), @@ -504,6 +506,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix) if (option_quiet) transport->verbose = -1; + else if (option_verbose) + transport->progress = 1; if (option_upload_pack) transport_set_option(transport, TRANS_OPT_UPLOADPACK, |