1 #ifndef MERGE_RECURSIVE_H
2 #define MERGE_RECURSIVE_H
7 unsigned subtree_merge : 1;
8 unsigned buffer_output : 1;
10 int diff_rename_limit;
11 int merge_rename_limit;
16 /* merge_trees() but with recursive ancestor consolidation */
17 int merge_recursive(struct merge_options *o,
20 struct commit_list *ancestors,
21 struct commit **result);
23 /* rename-detecting three-way merge, no recursion */
24 int merge_trees(struct merge_options *o,
28 struct tree **result);
31 * "git-merge-recursive" can be fed trees; wrap them into
32 * virtual commits and call merge_recursive() proper.
34 int merge_recursive_generic(struct merge_options *o,
35 const unsigned char *head,
36 const unsigned char *merge,
38 const unsigned char **ca,
39 struct commit **result);
41 void init_merge_options(struct merge_options *o);
42 struct tree *write_tree_from_memory(struct merge_options *o);