reflog_helpers.h 623 Bytes
Newer Older
1
size_t reflog_entrycount(git_repository *repo, const char *name);
2 3

#define cl_reflog_check_entry(repo, reflog, idx, old_spec, new_spec, email, message) \
4
    cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __FUNCTION__, __LINE__)
5 6

void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx,
7 8 9
	const char *old_spec, const char *new_spec,
	const char *email, const char *message,
	const char *file, const char *func, int line);
10 11

void reflog_print(git_repository *repo, const char *reflog_name);
12
int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry);