🌐 AI搜索 & 代理 主页
blob: 244a31f55ac7375b59d7c257bfc2391957fdca94 [file] [log] [blame]
Junio C Hamano525ab632007-12-24 08:36:001/*
2 * Low level 3-way in-core file merge.
3 */
4
5#ifndef LL_MERGE_H
6#define LL_MERGE_H
7
Jonathan Nieder712516b2010-08-26 05:49:538struct ll_merge_options {
9 unsigned virtual_ancestor : 1;
10 unsigned variant : 2; /* favor ours, favor theirs, or union merge */
11 unsigned renormalize : 1;
Justin Frankel58a1ece2010-08-26 05:50:4512 long xdl_opts;
Jonathan Nieder712516b2010-08-26 05:49:5313};
Jonathan Nieder73cf7f72010-08-05 11:17:3814
Junio C Hamano525ab632007-12-24 08:36:0015int ll_merge(mmbuffer_t *result_buf,
16 const char *path,
Jonathan Niederf01de622010-03-21 00:38:5817 mmfile_t *ancestor, const char *ancestor_label,
Junio C Hamano525ab632007-12-24 08:36:0018 mmfile_t *ours, const char *our_label,
19 mmfile_t *theirs, const char *their_label,
Jonathan Nieder712516b2010-08-26 05:49:5320 const struct ll_merge_options *opts);
Junio C Hamano525ab632007-12-24 08:36:0021
Junio C Hamano85885672010-01-17 07:28:4622int ll_merge_marker_size(const char *path);
23
Junio C Hamano525ab632007-12-24 08:36:0024#endif