4 #include "merge-recursive.h"
10 /* Whether the merge is clean */
14 * Result of merge. If !clean, represents what would go in worktree
15 * (thus possibly including files containing conflict markers).
20 * Additional metadata used by merge_switch_to_result() or future calls
21 * to merge_incore_*(). Includes data needed to update the index (if
22 * !clean) and to print "CONFLICT" messages. Not for external use.
28 * rename-detecting three-way merge with recursive ancestor consolidation.
29 * working tree and index are untouched.
31 void merge_incore_recursive(struct merge_options
*opt
,
32 struct commit_list
*merge_bases
,
35 struct merge_result
*result
);
38 * rename-detecting three-way merge, no recursion.
39 * working tree and index are untouched.
41 void merge_incore_nonrecursive(struct merge_options
*opt
,
42 struct tree
*merge_base
,
45 struct merge_result
*result
);
47 /* Update the working tree and index from head to result after incore merge */
48 void merge_switch_to_result(struct merge_options
*opt
,
50 struct merge_result
*result
,
51 int update_worktree_and_index
,
52 int display_update_msgs
);
54 /* Do needed cleanup when not calling merge_switch_to_result() */
55 void merge_finalize(struct merge_options
*opt
,
56 struct merge_result
*result
);