summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95110d7)
raw | patch | inline | side by side (parent: 95110d7)
author | Johannes Sixt <j6t@kdbg.org> | |
Mon, 27 Apr 2009 07:44:58 +0000 (09:44 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 27 Apr 2009 08:06:35 +0000 (01:06 -0700) |
A progress indicator is used to count through the 256 object fan-out
directories while unused object files are removed. (However, it becomes
visible only if this process takes long enough.)
Previously, display_progress() was only called if object files were
actually removed. But if directories towards the end (fd/, fe/, ff/) did
not exist, this could leave a strange line
Removing duplicate objects: 99% (255/256), done.
in the terminal instead of the expected "100% (256/256)".
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
directories while unused object files are removed. (However, it becomes
visible only if this process takes long enough.)
Previously, display_progress() was only called if object files were
actually removed. But if directories towards the end (fd/, fe/, ff/) did
not exist, this could leave a strange line
Removing duplicate objects: 99% (255/256), done.
in the terminal instead of the expected "100% (256/256)".
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-prune-packed.c | patch | blob | history |
diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c
index 2d5b2cd353a5e80a74e3828aae8e0c7dfa0e1997..4942892e9f83abc7beed6570d508cfe76da126a0 100644 (file)
--- a/builtin-prune-packed.c
+++ b/builtin-prune-packed.c
for (i = 0; i < 256; i++) {
DIR *d;
+ display_progress(progress, i + 1);
sprintf(pathname + len, "%02x/", i);
d = opendir(pathname);
if (!d)