interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / Documentation / technical / api-merge.adoc

35 lines · 1058 bytes Raw Blame History
1merge API
2=========
3
4The merge API helps a program to reconcile two competing sets of
5improvements to some files (e.g., unregistered changes from the work
6tree versus changes involved in switching to a new branch), reporting
7conflicts if found. The library called through this API is
8responsible for a few things.
9
10 * determining which trees to merge (recursive ancestor consolidation);
11
12 * lining up corresponding files in the trees to be merged (rename
13 detection, subtree shifting), reporting edge cases like add/add
14 and rename/rename conflicts to the user;
15
16 * performing a three-way merge of corresponding files, taking
17 path-specific merge drivers (specified in `.gitattributes`)
18 into account.
19
20Data structures
21---------------
22
23* `mmfile_t`
24
25This stores a buffer and its size for input to or output from the xdiff
26backend. See `xdiff/xdiff.h` for the definition and `diff.c` for examples.
27
28* `struct ll_merge_options`
29
30Check merge-ll.h for details.
31
32Low-level (single file) merge
33-----------------------------
34
35Check merge-ll.h for details.