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

Re: Be more verbose when checkout takes a long time

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 23, 2008, 23:42 UTC
Message-ID
<7vve4fxmsx.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7vzltrz4cl.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> Linus Torvalds <torvalds@linux-foundation.org> writes:
> ...
>> Sounds sane to me.
>
> Ok, then.
>
> Unfortunately it will be short-lived on 'master' as I have been
> planning to merge Daniel's rewrite soon ;-)
So here it is ;-)

Thanks to the unpack_trees_options.gently flag, this does not have to say "Falling back to..." because the first "attempt to switch normally" would silently fail.

---
 builtin-checkout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 5f176c6..283831e 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -232,6 +232,7 @@ static int merge_working_tree(struct checkout_opts *opts,
 			topts.update = 1;
 			topts.merge = 1;
 			topts.gently = opts->merge;
+			topts.verbose_update = !opts->quiet;
 			topts.fn = twoway_merge;
 			topts.dir = xcalloc(1, sizeof(*topts.dir));
 			topts.dir->show_ignored = 1;
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “Be more verbose when checkout takes a long time”
  1. Linus TorvaldsFeb 23, 2008
  2. Junio C HamanoFeb 23, 2008
  3. Linus TorvaldsFeb 23, 2008
  4. Junio C HamanoFeb 23, 2008
  5. Junio C HamanoFeb 23, 2008
  6. checkout: error out when index is unmerged even with -mJunio C Hamano, Feb 23, 2008
  7. Daniel BarkalowFeb 24, 2008

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.