]> git.ipfire.org Git - thirdparty/git.git/blame - ll-merge.h
merge-recursive: improve rename/rename(1to2)/add[/add] handling
[thirdparty/git.git] / ll-merge.h
CommitLineData
525ab639
JH
1/*
2 * Low level 3-way in-core file merge.
3 */
4
5#ifndef LL_MERGE_H
6#define LL_MERGE_H
7
ef3ca954
EN
8#include "xdiff/xdiff.h"
9
712516bc
JN
10struct ll_merge_options {
11 unsigned virtual_ancestor : 1;
12 unsigned variant : 2; /* favor ours, favor theirs, or union merge */
13 unsigned renormalize : 1;
b2a7942b 14 unsigned extra_marker_size;
58a1ece4 15 long xdl_opts;
712516bc 16};
73cf7f71 17
525ab639
JH
18int ll_merge(mmbuffer_t *result_buf,
19 const char *path,
f01de62e 20 mmfile_t *ancestor, const char *ancestor_label,
525ab639
JH
21 mmfile_t *ours, const char *our_label,
22 mmfile_t *theirs, const char *their_label,
712516bc 23 const struct ll_merge_options *opts);
525ab639 24
8588567c
JH
25int ll_merge_marker_size(const char *path);
26
525ab639 27#endif