blob: 7df0266ba88b13db52a10b2af6dc620b851b9695 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231MERGE STRATEGIES
2----------------
3
4resolve::
5This can only resolve two heads (i.e. the current branch
6and another branch you pulled from) using 3-way merge
7algorithm. It tries to carefully detect criss-cross
8merge ambiguities and is considered generally safe and
9fast.
10
11recursive::
12This can only resolve two heads using 3-way merge
13algorithm. When there are more than one common
14ancestors that can be used for 3-way merge, it creates a
15merged tree of the common ancestors and uses that as
16the reference tree for the 3-way merge. This has been
17reported to result in fewer merge conflicts without
18causing mis-merges by tests done on actual merge commits
19taken from Linux 2.6 kernel development history.
20Additionally this can detect and handle merges involving
21renames. This is the default merge strategy when
22pulling or merging one branch.
23
24octopus::
25This resolves more than two-head case, but refuses to do
26complex merge that needs manual resolution. It is
27primarily meant to be used for bundling topic branch
28heads together. This is the default merge strategy when
29pulling or merging more than one branches.
30
31ours::
32This resolves any number of heads, but the result of the
33merge is always the current branch head. It is meant to
34be used to supersede old development history of side
35branches.