2007-12-24 00:36:00 -08:00
|
|
|
/*
|
|
|
|
* Low level 3-way in-core file merge.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LL_MERGE_H
|
|
|
|
#define LL_MERGE_H
|
|
|
|
|
2010-08-26 00:49:53 -05:00
|
|
|
struct ll_merge_options {
|
|
|
|
unsigned virtual_ancestor : 1;
|
|
|
|
unsigned variant : 2; /* favor ours, favor theirs, or union merge */
|
|
|
|
unsigned renormalize : 1;
|
2010-08-26 00:50:45 -05:00
|
|
|
long xdl_opts;
|
2010-08-26 00:49:53 -05:00
|
|
|
};
|
2010-08-05 06:17:38 -05:00
|
|
|
|
2007-12-24 00:36:00 -08:00
|
|
|
int ll_merge(mmbuffer_t *result_buf,
|
|
|
|
const char *path,
|
2010-03-20 19:38:58 -05:00
|
|
|
mmfile_t *ancestor, const char *ancestor_label,
|
2007-12-24 00:36:00 -08:00
|
|
|
mmfile_t *ours, const char *our_label,
|
|
|
|
mmfile_t *theirs, const char *their_label,
|
2010-08-26 00:49:53 -05:00
|
|
|
const struct ll_merge_options *opts);
|
2007-12-24 00:36:00 -08:00
|
|
|
|
2010-01-16 23:28:46 -08:00
|
|
|
int ll_merge_marker_size(const char *path);
|
|
|
|
|
2007-12-24 00:36:00 -08:00
|
|
|
#endif
|