summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e30404)
raw | patch | inline | side by side (parent: 0e30404)
author | Nicolas Pitre <nico@cam.org> | |
Tue, 30 Oct 2007 18:57:31 +0000 (14:57 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 30 Oct 2007 23:08:40 +0000 (16:08 -0700) |
The progress count is per fanout directory, so it is useless to call
it for every file as the count doesn't change that often.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
it for every file as the count doesn't change that often.
Signed-off-by: Nicolas Pitre <nico@cam.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 015c8bb7cca4867b2dc0d54091f5901d209f52cf..907e36828f61ee925adfe5eff111abb2fe3f0681 100644 (file)
--- a/builtin-prune-packed.c
+++ b/builtin-prune-packed.c
struct dirent *de;
char hex[40];
+ if (opts == VERBOSE)
+ display_progress(&progress, i + 1);
+
sprintf(hex, "%02x", i);
while ((de = readdir(dir)) != NULL) {
unsigned char sha1[20];
if (!has_sha1_pack(sha1, NULL))
continue;
memcpy(pathname + len, de->d_name, 38);
- if (opts == VERBOSE)
- display_progress(&progress, i + 1);
if (opts & DRY_RUN)
printf("rm -f %s\n", pathname);
else if (unlink(pathname) < 0)