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>
This commit is contained in:
committed by
Junio C Hamano
parent
96a02f8f6d
commit
13aaf14825
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user