summaryrefslogtreecommitdiff
path: root/builtin-unpack-objects.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-04-20 14:10:07 -0400
committerJunio C Hamano <junkio@cox.net>2007-04-22 22:18:05 -0700
commit13aaf148258808437c485d3ef54c7ae7668384d7 (patch)
tree17f2ec24d48906b44948b3091129688ea402f9f7 /builtin-unpack-objects.c
parent96a02f8f6d2192d3686cd1c719044082c89e8391 (diff)
downloadgit-13aaf148258808437c485d3ef54c7ae7668384d7.tar.gz
make progress "title" part of the common progress interface
If the progress bar ends up in a box, better provide a title for it too. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-unpack-objects.c')
-rw-r--r--builtin-unpack-objects.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/builtin-unpack-objects.c b/builtin-unpack-objects.c
index c370c7f834..2bbda67fab 100644
--- a/builtin-unpack-objects.c
+++ b/builtin-unpack-objects.c
@@ -321,10 +321,8 @@ static void unpack_all(void)
die("unknown pack file version %d", ntohl(hdr->hdr_version));
use(sizeof(struct pack_header));
- if (!quiet) {
- fprintf(stderr, "Unpacking %d objects\n", nr_objects);
- start_progress(&progress, "", nr_objects);
- }
+ if (!quiet)
+ start_progress(&progress, "Unpacking %u objects...", "", nr_objects);
obj_list = xmalloc(nr_objects * sizeof(*obj_list));
for (i = 0; i < nr_objects; i++) {
unpack_one(i);