Fix the progress code to output LF only when it is really needed

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Alex Riesen
2007-05-23 18:07:25 +02:00
committed by Junio C Hamano
parent 7ca055f75a
commit 421f9d1685
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ struct progress {
unsigned delay;
unsigned delayed_percent_treshold;
const char *delayed_title;
int need_lf;
};
int display_progress(struct progress *progress, unsigned n);