Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-04-20 23:27:44 +0400
committerJunio C Hamano <junkio@cox.net>2007-04-23 09:18:05 +0400
commit55a9137d8a33449425c55104c00bc9189381754a (patch)
tree6ae13b45260b61d006585ebbe6182f02e41e0840
parent180a9f226860e18cdc2c3987ae89c239b318b408 (diff)
delay progress display when checking out files
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>
-rw-r--r--unpack-trees.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index cefc4042d5..675a9998dc 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;
}