refs: support symrefs in 'reference-transaction' hook
[git.git] / progress.h
blob3a945637c81c22734b563325b66956ee4fb33b0b
1 #ifndef PROGRESS_H
2 #define PROGRESS_H
3 #include "gettext.h"
5 struct progress;
7 #ifdef GIT_TEST_PROGRESS_ONLY
9 extern int progress_testing;
10 extern uint64_t progress_test_ns;
11 void progress_test_force_update(void);
13 #endif
15 void display_throughput(struct progress *progress, uint64_t total);
16 void display_progress(struct progress *progress, uint64_t n);
17 struct progress *start_progress(const char *title, uint64_t total);
18 struct progress *start_sparse_progress(const char *title, uint64_t total);
19 struct progress *start_delayed_progress(const char *title, uint64_t total);
20 struct progress *start_delayed_sparse_progress(const char *title,
21 uint64_t total);
22 void stop_progress_msg(struct progress **p_progress, const char *msg);
23 static inline void stop_progress(struct progress **p_progress)
25 stop_progress_msg(p_progress, _("done"));
27 #endif