1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| | #ifndef MERGE_STRATEGIES_H
#define MERGE_STRATEGIES_H
#include "object.h"
int merge_three_way(struct repository *r,
const struct object_id *orig_blob,
const struct object_id *our_blob,
const struct object_id *their_blob, const char *path,
unsigned int orig_mode, unsigned int our_mode, unsigned int their_mode);
typedef int (*merge_fn)(struct repository *r,
const struct object_id *orig_blob,
const struct object_id *our_blob,
const struct object_id *their_blob, const char *path,
unsigned int orig_mode, unsigned int our_mode, unsigned int their_mode,
void *data);
int merge_one_file_spawn(struct repository *r,
const struct object_id *orig_blob,
const struct object_id *our_blob,
const struct object_id *their_blob, const char *path,
unsigned int orig_mode, unsigned int our_mode, unsigned int their_mode,
void *data);
int merge_index_path(struct repository *r, int oneshot, int quiet,
const char *path, merge_fn fn, void *data);
int merge_all_index(struct repository *r, int oneshot, int quiet,
merge_fn fn, void *data);
#endif /* MERGE_STRATEGIES_H */
|