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