Make 'unpack_trees()' take the index to work on as an argument
[git/haiku.git] / unpack-trees.h
blob65add1652f77978e0e0aee4924b583aefa9978ce
1 #ifndef UNPACK_TREES_H
2 #define UNPACK_TREES_H
4 struct unpack_trees_options;
6 typedef int (*merge_fn_t)(struct cache_entry **src,
7 struct unpack_trees_options *options,
8 int remove);
10 struct unpack_trees_options {
11 int reset;
12 int merge;
13 int update;
14 int index_only;
15 int nontrivial_merge;
16 int trivial_merges_only;
17 int verbose_update;
18 int aggressive;
19 int skip_unmerged;
20 int gently;
21 const char *prefix;
22 int pos;
23 struct dir_struct *dir;
24 merge_fn_t fn;
26 int head_idx;
27 int merge_size;
29 struct cache_entry *df_conflict_entry;
30 void *unpack_data;
31 struct index_state *index;
34 extern int unpack_trees(unsigned n, struct tree_desc *t,
35 struct unpack_trees_options *options);
37 int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o, int);
38 int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o, int);
39 int bind_merge(struct cache_entry **src, struct unpack_trees_options *o, int);
40 int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o, int);
42 #endif