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 <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Linus Torvalds committed
Jun 4, 2006 at 10:48 UTC
eff97e3faeb28f6521851c1b3be1a54a2138f12a
1 file changed
+1
builtin-read-tree.c
+1
@@ -376,6 +376,7 @@ static void check_updates(struct cache_entry **src, int nr)
376
fprintf(stderr, "%4u%% (%u/%u) done\r",
377
percent, cnt, total);
378
last_percent = percent;
379
+ progress_update = 0;
380
}
381
}
382
}