https://github.com/git/git
Revision 0f158320593bd57fe2c3fe55fbce751e9415ffc2 authored by Johannes Schindelin on 10 April 2024, 19:06:57 UTC, committed by Johannes Schindelin on 19 April 2024, 10:38:43 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent f5b2af0
Raw File
Tip revision: 0f158320593bd57fe2c3fe55fbce751e9415ffc2 authored by Johannes Schindelin on 10 April 2024, 19:06:57 UTC
Git 2.41.1
Tip revision: 0f15832
progress.h
#ifndef PROGRESS_H
#define PROGRESS_H
#include "gettext.h"

struct progress;

#ifdef GIT_TEST_PROGRESS_ONLY

extern int progress_testing;
extern uint64_t progress_test_ns;
void progress_test_force_update(void);

#endif

void display_throughput(struct progress *progress, uint64_t total);
void display_progress(struct progress *progress, uint64_t n);
struct progress *start_progress(const char *title, uint64_t total);
struct progress *start_sparse_progress(const char *title, uint64_t total);
struct progress *start_delayed_progress(const char *title, uint64_t total);
struct progress *start_delayed_sparse_progress(const char *title,
					       uint64_t total);
void stop_progress_msg(struct progress **p_progress, const char *msg);
static inline void stop_progress(struct progress **p_progress)
{
	stop_progress_msg(p_progress, _("done"));
}
#endif
back to top