diff options
author | Nicolas Pitre <nico@cam.org> | 2007-04-20 14:10:07 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-22 22:18:05 -0700 |
commit | 13aaf148258808437c485d3ef54c7ae7668384d7 (patch) | |
tree | 17f2ec24d48906b44948b3091129688ea402f9f7 /index-pack.c | |
parent | 96a02f8f6d2192d3686cd1c719044082c89e8391 (diff) | |
download | git-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 'index-pack.c')
-rw-r--r-- | index-pack.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/index-pack.c b/index-pack.c index a49d03d6de..824004f9a2 100644 --- a/index-pack.c +++ b/index-pack.c @@ -407,10 +407,8 @@ static void parse_pack_objects(unsigned char *sha1) * - calculate SHA1 of all non-delta objects; * - remember base (SHA1 or offset) for all deltas. */ - if (verbose) { - fprintf(stderr, "Indexing %d objects.\n", nr_objects); - start_progress(&progress, "", nr_objects); - } + if (verbose) + start_progress(&progress, "Indexing %u objects...", "", nr_objects); for (i = 0; i < nr_objects; i++) { struct object_entry *obj = &objects[i]; data = unpack_raw_entry(obj, &delta->base); @@ -458,10 +456,8 @@ static void parse_pack_objects(unsigned char *sha1) * recursively checking if the resulting object is used as a base * for some more deltas. */ - if (verbose) { - fprintf(stderr, "Resolving %d deltas.\n", nr_deltas); - start_progress(&progress, "", nr_deltas); - } + if (verbose) + start_progress(&progress, "Resolving %u deltas...", "", nr_deltas); for (i = 0; i < nr_objects; i++) { struct object_entry *obj = &objects[i]; union delta_base base; |