summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 180a9f2)
raw | patch | inline | side by side (parent: 180a9f2)
author | Nicolas Pitre <nico@cam.org> | |
Fri, 20 Apr 2007 19:27:44 +0000 (15:27 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 23 Apr 2007 05:18:05 +0000 (22:18 -0700) |
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>
Signed-off-by: Junio C Hamano <junkio@cox.net>
of files remains to be checked out after 2 seconds.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
unpack-trees.c | patch | blob | history |
diff --git a/unpack-trees.c b/unpack-trees.c
index cefc4042d515d0df2b9ba76b2f5580289c641541..675a9998dcbab528faf2cf34ab1a66f884a36300 100644 (file)
--- a/unpack-trees.c
+++ b/unpack-trees.c
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;
}