4 #define MAX_UNPACK_TREES 8
6 struct unpack_trees_options;
8 typedef int (*merge_fn_t)(struct cache_entry **src,
9 struct unpack_trees_options *options);
11 struct unpack_trees_error_msgs {
12 const char *would_overwrite;
13 const char *not_uptodate_file;
14 const char *not_uptodate_dir;
15 const char *would_lose_untracked;
16 const char *bind_overlap;
19 struct unpack_trees_options {
34 struct dir_struct *dir;
36 struct unpack_trees_error_msgs msgs;
41 struct cache_entry *df_conflict_entry;
44 struct index_state *dst_index;
45 struct index_state *src_index;
46 struct index_state result;
49 extern int unpack_trees(unsigned n, struct tree_desc *t,
50 struct unpack_trees_options *options);
52 int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o);
53 int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o);
54 int bind_merge(struct cache_entry **src, struct unpack_trees_options *o);
55 int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o);