built-in add -p: implement the '/' ("search regex") command
[git.git] / ll-merge.h
blobe78973dd55ed596e26dcf4a372671ad03b97986a
1 /*
2 * Low level 3-way in-core file merge.
3 */
5 #ifndef LL_MERGE_H
6 #define LL_MERGE_H
8 #include "xdiff/xdiff.h"
10 struct index_state;
12 struct ll_merge_options {
13 unsigned virtual_ancestor : 1;
14 unsigned variant : 2; /* favor ours, favor theirs, or union merge */
15 unsigned renormalize : 1;
16 unsigned extra_marker_size;
17 long xdl_opts;
20 int ll_merge(mmbuffer_t *result_buf,
21 const char *path,
22 mmfile_t *ancestor, const char *ancestor_label,
23 mmfile_t *ours, const char *our_label,
24 mmfile_t *theirs, const char *their_label,
25 struct index_state *istate,
26 const struct ll_merge_options *opts);
28 int ll_merge_marker_size(struct index_state *istate, const char *path);
29 void reset_merge_attributes(void);
31 #endif