From: Nicolas Pitre <nico@cam.org>
To: unlisted-recipients:; (no To-header on input)
Subject: [PATCH 3/3] delay progress display when checking out files
Date: Fri, 20 Apr 2007 15:27:44 -0400 [thread overview]
Message-ID: <S1030980AbXDTTaV/20070420193021Z+120@vger.kernel.org> (raw)
Let's start displaying progress only if more than 50% of total number
of files remains to be checked out after 2 seconds.
Signed-off-by: Nicolas Pitre <nico@cam.org>
---
unpack-trees.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/unpack-trees.c b/unpack-trees.c
index cefc404..675a999 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -304,13 +304,8 @@ static void check_updates(struct cache_entry **src, int nr,
total++;
}
- /* Don't bother doing this for very small updates */
- if (total < 250)
- total = 0;
-
- if (total)
- start_progress(&progress, "Checking %u files out...",
- "", total);
+ start_progress_delay(&progress, "Checking %u files out...",
+ "", total, 50, 2);
cnt = 0;
}
--
1.5.1.1.874.g4f52f-dirty
reply other threads:[~2007-04-20 19:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=S1030980AbXDTTaV/20070420193021Z+120@vger.kernel.org \
--to=nico@cam.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).