From: Junio C Hamano <gitster@pobox.com>
To: kusmabite@gmail.com
Cc: Johannes Sixt <j.sixt@viscovery.net>,
Tay Ray Chuan <rctay89@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH/RFC] clone: inform the user we are checking out
Date: Mon, 07 May 2012 12:03:46 -0700 [thread overview]
Message-ID: <7v397b6cfh.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CABPQNSYe6dDf20D2pQpF=K97rZnWxqe5weEdO+FdKck9rwwzWg@mail.gmail.com> (Erik Faye-Lund's message of "Mon, 7 May 2012 12:02:46 +0200")
Erik Faye-Lund <kusmabite@gmail.com> writes:
> OK, some blaming shows that this changed in 5bd631b3 ("clone: support
> multiple levels of verbosity"), back in February 2010. Before this
> patch, one would have to specify the "quiet"-flag to clone to suppress
> progress-output, after the patch the default is progress being off.
>
> This seems like the right thing to do if we want to resurrect the
> progress-output's default-on behavior:
> ---8<---
> diff --git a/builtin/clone.c b/builtin/clone.c
> index 3f863a1..f48e603 100644
> --- a/builtin/clone.c
> +++ b/builtin/clone.c
> @@ -569,7 +569,7 @@ static int checkout(void)
> opts.update = 1;
> opts.merge = 1;
> opts.fn = oneway_merge;
> - opts.verbose_update = (option_verbosity > 0);
> + opts.verbose_update = (option_verbosity >= 0);
> opts.src_index = &the_index;
> opts.dst_index = &the_index;
>
> ---8<---
Sounds sensible, as the original said "verbosely update unless we were
told to be quiet", so the normal case should be verbose_update which will
give progress only if it takes too long.
Care to roll a signed-off patch?
prev parent reply other threads:[~2012-05-07 19:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 9:09 [PATCH/RFC] clone: inform the user we are checking out Erik Faye-Lund
2012-05-07 9:26 ` Johannes Sixt
2012-05-07 9:35 ` Erik Faye-Lund
2012-05-07 9:46 ` Erik Faye-Lund
2012-05-07 10:02 ` Erik Faye-Lund
2012-05-07 13:54 ` Jeff King
2012-05-07 19:03 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v397b6cfh.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
--cc=kusmabite@gmail.com \
--cc=rctay89@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.