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
@ -308,10 +308,9 @@ static void check_updates(struct cache_entry **src, int nr,
|
||||
if (total < 250)
|
||||
total = 0;
|
||||
|
||||
if (total) {
|
||||
fprintf(stderr, "Checking files out...\n");
|
||||
start_progress(&progress, "", total);
|
||||
}
|
||||
if (total)
|
||||
start_progress(&progress, "Checking %u files out...",
|
||||
"", total);
|
||||
cnt = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user