1 #ifndef MERGE_RECURSIVE_H
2 #define MERGE_RECURSIVE_H
4 #include "string-list.h"
10 MERGE_RECURSIVE_NORMAL
= 0,
12 MERGE_RECURSIVE_THEIRS
,
14 const char *subtree_shift
;
15 unsigned buffer_output
: 1;
17 int diff_rename_limit
;
18 int merge_rename_limit
;
21 struct string_list current_file_set
;
22 struct string_list current_directory_set
;
25 /* merge_trees() but with recursive ancestor consolidation */
26 int merge_recursive(struct merge_options
*o
,
29 struct commit_list
*ancestors
,
30 struct commit
**result
);
32 /* rename-detecting three-way merge, no recursion */
33 int merge_trees(struct merge_options
*o
,
37 struct tree
**result
);
40 * "git-merge-recursive" can be fed trees; wrap them into
41 * virtual commits and call merge_recursive() proper.
43 int merge_recursive_generic(struct merge_options
*o
,
44 const unsigned char *head
,
45 const unsigned char *merge
,
47 const unsigned char **ca
,
48 struct commit
**result
);
50 void init_merge_options(struct merge_options
*o
);
51 struct tree
*write_tree_from_memory(struct merge_options
*o
);