summaryrefslogtreecommitdiff
path: root/builtin-read-tree.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-06-04 17:48:31 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-05 19:26:53 (GMT)
commiteff97e3faeb28f6521851c1b3be1a54a2138f12a (patch)
tree4c3a016ad75017cfc8a86f267fec729ac1e717b8 /builtin-read-tree.c
parent4e2e5647f23e2babcb188fd05eececbb261e2f17 (diff)
downloadgit-eff97e3faeb28f6521851c1b3be1a54a2138f12a.zip
git-eff97e3faeb28f6521851c1b3be1a54a2138f12a.tar.gz
git-eff97e3faeb28f6521851c1b3be1a54a2138f12a.tar.bz2
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>
Diffstat (limited to 'builtin-read-tree.c')
-rw-r--r--builtin-read-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-read-tree.c b/builtin-read-tree.c
index 085e11e..8d1a22d 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;
}
}
}