]> git.ipfire.org Git - thirdparty/git.git/blame - progress.h
Merge branch 'jw/remote-doc-typofix' into HEAD
[thirdparty/git.git] / progress.h
CommitLineData
e0173ad9
JH
1#ifndef PROGRESS_H
2#define PROGRESS_H
74900a6b 3#include "gettext.h"
96a02f8f 4
dc6a0757 5struct progress;
96a02f8f 6
3cacb9aa
ĐTCD
7#ifdef GIT_TEST_PROGRESS_ONLY
8
9extern int progress_testing;
10extern uint64_t progress_test_ns;
11void progress_test_force_update(void);
12
13#endif
14
d6861d02 15void display_throughput(struct progress *progress, uint64_t total);
9219d127 16void display_progress(struct progress *progress, uint64_t n);
d6861d02 17struct progress *start_progress(const char *title, uint64_t total);
9d81ecb5 18struct progress *start_sparse_progress(const char *title, uint64_t total);
d6861d02 19struct progress *start_delayed_progress(const char *title, uint64_t total);
9d81ecb5
JH
20struct progress *start_delayed_sparse_progress(const char *title,
21 uint64_t total);
a02014bb 22void stop_progress_msg(struct progress **p_progress, const char *msg);
74900a6b
ÆAB
23static inline void stop_progress(struct progress **p_progress)
24{
25 stop_progress_msg(p_progress, _("done"));
26}
96a02f8f 27#endif