1 #ifndef MERGE_RECURSIVE_H
2 #define MERGE_RECURSIVE_H
4 #include "string-list.h"
9 unsigned subtree_merge : 1;
10 unsigned buffer_output : 1;
12 int diff_rename_limit;
13 int merge_rename_limit;
16 struct string_list current_file_set;
17 struct string_list current_directory_set;
20 /* merge_trees() but with recursive ancestor consolidation */
21 int merge_recursive(struct merge_options *o,
24 struct commit_list *ancestors,
25 struct commit **result);
27 /* rename-detecting three-way merge, no recursion */
28 int merge_trees(struct merge_options *o,
32 struct tree **result);
35 * "git-merge-recursive" can be fed trees; wrap them into
36 * virtual commits and call merge_recursive() proper.
38 int merge_recursive_generic(struct merge_options *o,
39 const unsigned char *head,
40 const unsigned char *merge,
42 const unsigned char **ca,
43 struct commit **result);
45 void init_merge_options(struct merge_options *o);
46 struct tree *write_tree_from_memory(struct merge_options *o);