In the same spirit of prettifying Git's output display for mere mortals,
here's a simple extension to the progress API allowing for a final
message to be provided when terminating a progress line, and use it for
the display of the number of objects needed to complete a thin pack,
saving yet one more line of screen display.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Nicolas Pitre17 years agocommitted byJunio C Hamano
static int display(struct progress *progress, unsigned n, int done)
static int display(struct progress *progress, unsigned n, const char *done)
{
char *eol, *tp;
const char *eol, *tp;
if (progress->delay) {
if (!progress_update || --progress->delay)
@ -90,7 +90,7 @@ static int display(struct progress *progress, unsigned n, int done)
@@ -90,7 +90,7 @@ static int display(struct progress *progress, unsigned n, int done)