From: Linus Torvalds Date: Sun, 4 Jun 2006 17:48:31 +0000 (-0700) Subject: read-tree: fix eye-candy. X-Git-Tag: v1.4.0-rc1~8 X-Git-Url: https://git.octo.it/?p=git.git;a=commitdiff_plain;h=eff97e3faeb28f6521851c1b3be1a54a2138f12a read-tree: fix eye-candy. Anton Blanchard spotted that watching checkout stage of a clone on a slow terminal takes ages because it forgot to clear the "once a second happened" flag, so instead of updates the percentage output for every file it checks out after the first second has passed. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- diff --git a/builtin-read-tree.c b/builtin-read-tree.c index 085e11e7..8d1a22d3 100644 --- a/builtin-read-tree.c +++ b/builtin-read-tree.c @@ -376,6 +376,7 @@ static void check_updates(struct cache_entry **src, int nr) fprintf(stderr, "%4u%% (%u/%u) done\r", percent, cnt, total); last_percent = percent; + progress_update = 0; } } }