]> git.proxmox.com Git - libgit2.git/blob - tests/checkout/checkout_helpers.h
Merge pull request #3131 from urkud/const-char
[libgit2.git] / tests / checkout / checkout_helpers.h
1 #include "buffer.h"
2 #include "git2/object.h"
3 #include "git2/repository.h"
4
5 extern void assert_on_branch(git_repository *repo, const char *branch);
6 extern void reset_index_to_treeish(git_object *treeish);
7
8 #define check_file_contents(PATH,EXP) \
9 cl_assert_equal_file(EXP,0,PATH)
10
11 #define check_file_contents_nocr(PATH,EXP) \
12 cl_assert_equal_file_ignore_cr(EXP,0,PATH)
13
14 typedef struct {
15 int n_conflicts;
16 int n_dirty;
17 int n_updates;
18 int n_untracked;
19 int n_ignored;
20 int debug;
21 } checkout_counts;
22
23 extern int checkout_count_callback(
24 git_checkout_notify_t why,
25 const char *path,
26 const git_diff_file *baseline,
27 const git_diff_file *target,
28 const git_diff_file *workdir,
29 void *payload);
30
31 extern void tick_index(git_index *index);