git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] clone: inform the user we are checking out

From
Junio C Hamano <gitster@pobox.com>
Date
May 7, 2012, 19:03 UTC
Message-ID
<7v397b6cfh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABPQNSYe6dDf20D2pQpF=K97rZnWxqe5weEdO+FdKck9rwwzWg@mail.gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
Show 22 quoted lines
> 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?
Previous: Jeff King
Message 7 of 7 in “clone: inform the user we are checking out”
  1. clone: inform the user we are checking outErik Faye-Lund, May 7, 2012
  2. Johannes SixtMay 7, 2012
  3. Erik Faye-LundMay 7, 2012
  4. Erik Faye-LundMay 7, 2012
  5. Erik Faye-LundMay 7, 2012
  6. Jeff KingMay 7, 2012
  7. Junio C HamanoMay 7, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.