Commit 8d2b3110 by Edward Thomson

tests: include function declarations

parent bfdc0971
......@@ -2,6 +2,7 @@
#include "posix.h"
#include "filter.h"
#include "git2/sys/filter.h"
#include "custom_helpers.h"
#define VERY_SECURE_ENCRYPTION(b) ((b) ^ 0xff)
......
......@@ -65,4 +65,8 @@ int merge_test_reuc(git_index *index, const struct merge_reuc_entry expected[],
int merge_test_workdir(git_repository *repo, const struct merge_index_entry expected[], size_t expected_len);
void merge__dump_names(git_index *index);
void merge__dump_index_entries(git_vector *index_entries);
void merge__dump_reuc(git_index *index);
#endif
......@@ -3,6 +3,7 @@
#include "common.h"
#include "util.h"
#include "path.h"
#include "ref_helpers.h"
int reference_is_packed(git_reference *ref)
{
......
......@@ -2,8 +2,9 @@
#include "repository.h"
#include "reflog.h"
#include "reflog_helpers.h"
static int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry)
int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry)
{
char old_oid[GIT_OID_HEXSZ], new_oid[GIT_OID_HEXSZ];
......
size_t reflog_entrycount(git_repository *repo, const char *name);
#define cl_reflog_check_entry(repo, reflog, idx, old_spec, new_spec, email, message) \
cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __LINE__)
cl_reflog_check_entry_(repo, reflog, idx, old_spec, new_spec, email, message, __FILE__, __FUNCTION__, __LINE__)
void cl_reflog_check_entry_(git_repository *repo, const char *reflog, size_t idx,
const char *old_spec, const char *new_spec,
const char *email, const char *message, const char *file, int line);
const char *old_spec, const char *new_spec,
const char *email, const char *message,
const char *file, const char *func, int line);
void reflog_print(git_repository *repo, const char *reflog_name);
int reflog_entry_tostr(git_str *out, const git_reflog_entry *entry);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment