aboutsummaryrefslogtreecommitdiff
path: root/progress.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-10-16 21:55:45 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-10-17 02:54:55 -0400
commit42e18fbf5f94dd6bd303bf702e030a29fa39d6c4 (patch)
tree5ecf0327f3b5a99e0fc37709aef674d56d825638 /progress.h
parent207f1a75e7e4d14286aeed107af7c56dc811797b (diff)
downloadgit-42e18fbf5f94dd6bd303bf702e030a29fa39d6c4.tar.gz
git-42e18fbf5f94dd6bd303bf702e030a29fa39d6c4.tar.xz
more compact progress display
Each progress can be on a single line instead of two. [sp: Changed "Checking files out" to "Checking out files" at Johannes Sixt's suggestion as it better explains the action that is taking place] Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'progress.h')
-rw-r--r--progress.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/progress.h b/progress.h
index a7c17ca7c..07b56bdbb 100644
--- a/progress.h
+++ b/progress.h
@@ -2,21 +2,19 @@
#define PROGRESS_H
struct progress {
- const char *prefix;
+ const char *title;
+ int last_value;
unsigned total;
unsigned last_percent;
unsigned delay;
unsigned delayed_percent_treshold;
- const char *delayed_title;
- int need_lf;
};
int display_progress(struct progress *progress, unsigned n);
void start_progress(struct progress *progress, const char *title,
- const char *prefix, unsigned total);
+ unsigned total);
void start_progress_delay(struct progress *progress, const char *title,
- const char *prefix, unsigned total,
- unsigned percent_treshold, unsigned delay);
+ unsigned total, unsigned percent_treshold, unsigned delay);
void stop_progress(struct progress *progress);
#endif