Merge branch 'hb/maint-send-email-quote-recipients'
[git/mingw/4msysgit.git] / unpack-trees.h
blobd436d6ced9939beeb4599dc8fddebe0890e55db8
1 #ifndef UNPACK_TREES_H
2 #define UNPACK_TREES_H
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_options {
12 unsigned int reset:1,
13 merge:1,
14 update:1,
15 index_only:1,
16 nontrivial_merge:1,
17 trivial_merges_only:1,
18 verbose_update:1,
19 aggressive:1,
20 skip_unmerged:1,
21 gently:1;
22 const char *prefix;
23 int pos;
24 struct dir_struct *dir;
25 merge_fn_t fn;
27 int head_idx;
28 int merge_size;
30 struct cache_entry *df_conflict_entry;
31 void *unpack_data;
33 struct index_state *dst_index;
34 struct index_state *src_index;
35 struct index_state result;
38 extern int unpack_trees(unsigned n, struct tree_desc *t,
39 struct unpack_trees_options *options);
41 int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o);
42 int twoway_merge(struct cache_entry **src, struct unpack_trees_options *o);
43 int bind_merge(struct cache_entry **src, struct unpack_trees_options *o);
44 int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o);
46 #endif