Nguyễn Thái Ngọc Duy | da0005b | 2015-03-11 16:32:45 -0400 | [diff] [blame] | 1 | merge.conflictStyle:: |
Junio C Hamano | 42fc11c | 2008-11-26 11:11:18 -0800 | [diff] [blame] | 2 | Specify the style in which conflicted hunks are written out to |
| 3 | working tree files upon merge. The default is "merge", which |
Ralf Wildenhues | 29b802a | 2008-12-09 07:23:51 +0100 | [diff] [blame] | 4 | shows a `<<<<<<<` conflict marker, changes made by one side, |
| 5 | a `=======` marker, changes made by the other side, and then |
| 6 | a `>>>>>>>` marker. An alternate style, "diff3", adds a `|||||||` |
| 7 | marker and the original text before the `=======` marker. |
SZEDER Gábor | 3e6c0a3 | 2008-04-06 03:23:44 +0200 | [diff] [blame] | 8 | |
Junio C Hamano | 93e535a | 2011-03-23 23:48:24 -0700 | [diff] [blame] | 9 | merge.defaultToUpstream:: |
| 10 | If merge is called without any commit argument, merge the upstream |
| 11 | branches configured for the current branch by using their last |
Matthieu Moy | a6d3bde | 2012-10-23 13:34:05 +0200 | [diff] [blame] | 12 | observed values stored in their remote-tracking branches. |
Junio C Hamano | 93e535a | 2011-03-23 23:48:24 -0700 | [diff] [blame] | 13 | The values of the `branch.<current branch>.merge` that name the |
| 14 | branches at the remote named by `branch.<current branch>.remote` |
| 15 | are consulted, and then they are mapped via `remote.<remote>.fetch` |
Matthieu Moy | a6d3bde | 2012-10-23 13:34:05 +0200 | [diff] [blame] | 16 | to their corresponding remote-tracking branches, and the tips of |
Junio C Hamano | 93e535a | 2011-03-23 23:48:24 -0700 | [diff] [blame] | 17 | these tracking branches are merged. |
| 18 | |
Junio C Hamano | f23e8de | 2011-05-06 12:27:05 -0700 | [diff] [blame] | 19 | merge.ff:: |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 20 | By default, Git does not create an extra merge commit when merging |
Junio C Hamano | f23e8de | 2011-05-06 12:27:05 -0700 | [diff] [blame] | 21 | a commit that is a descendant of the current commit. Instead, the |
| 22 | tip of the current branch is fast-forwarded. When set to `false`, |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 23 | this variable tells Git to create an extra merge commit in such |
Junio C Hamano | f23e8de | 2011-05-06 12:27:05 -0700 | [diff] [blame] | 24 | a case (equivalent to giving the `--no-ff` option from the command |
| 25 | line). When set to `only`, only such fast-forward merges are |
| 26 | allowed (equivalent to giving the `--ff-only` option from the |
| 27 | command line). |
| 28 | |
SZEDER Gábor | fc0aa39 | 2015-05-27 23:52:23 +0200 | [diff] [blame] | 29 | include::fmt-merge-msg-config.txt[] |
SZEDER Gábor | f5a84c3 | 2008-04-06 03:23:42 +0200 | [diff] [blame] | 30 | |
Jeff King | 2a2ac92 | 2008-04-30 13:23:55 -0400 | [diff] [blame] | 31 | merge.renameLimit:: |
| 32 | The number of files to consider when performing rename detection |
| 33 | during a merge; if not specified, defaults to the value of |
| 34 | diff.renameLimit. |
| 35 | |
Eyvind Bernhardsen | f217f0e | 2010-07-02 21:20:47 +0200 | [diff] [blame] | 36 | merge.renormalize:: |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 37 | Tell Git that canonical representation of files in the |
Eyvind Bernhardsen | f217f0e | 2010-07-02 21:20:47 +0200 | [diff] [blame] | 38 | repository has changed over time (e.g. earlier commits record |
| 39 | text files with CRLF line endings, but recent ones use LF line |
Thomas Ackermann | 2de9b71 | 2013-01-21 20:17:53 +0100 | [diff] [blame] | 40 | endings). In such a repository, Git can convert the data |
Eyvind Bernhardsen | f217f0e | 2010-07-02 21:20:47 +0200 | [diff] [blame] | 41 | recorded in commits to a canonical form before performing a |
| 42 | merge to reduce unnecessary conflicts. For more information, |
| 43 | see section "Merging branches with differing checkin/checkout |
| 44 | attributes" in linkgit:gitattributes[5]. |
| 45 | |
Junio C Hamano | 42fc11c | 2008-11-26 11:11:18 -0800 | [diff] [blame] | 46 | merge.stat:: |
| 47 | Whether to print the diffstat between ORIG_HEAD and the merge result |
| 48 | at the end of the merge. True by default. |
| 49 | |
SZEDER Gábor | f5a84c3 | 2008-04-06 03:23:42 +0200 | [diff] [blame] | 50 | merge.tool:: |
David Aguilar | f35ec54 | 2013-01-27 16:52:26 -0800 | [diff] [blame] | 51 | Controls which merge tool is used by linkgit:git-mergetool[1]. |
| 52 | The list below shows the valid built-in values. |
| 53 | Any other value is treated as a custom merge tool and requires |
| 54 | that a corresponding mergetool.<tool>.cmd variable is defined. |
| 55 | |
| 56 | include::mergetools-merge.txt[] |
SZEDER Gábor | f5a84c3 | 2008-04-06 03:23:42 +0200 | [diff] [blame] | 57 | |
| 58 | merge.verbosity:: |
| 59 | Controls the amount of output shown by the recursive merge |
| 60 | strategy. Level 0 outputs nothing except a final error |
| 61 | message if conflicts were detected. Level 1 outputs only |
| 62 | conflicts, 2 outputs conflicts and file changes. Level 5 and |
| 63 | above outputs debugging information. The default is level 2. |
Tom Russello | eee7f4a | 2016-06-08 00:35:06 +0200 | [diff] [blame] | 64 | Can be overridden by the `GIT_MERGE_VERBOSITY` environment variable. |
SZEDER Gábor | f5a84c3 | 2008-04-06 03:23:42 +0200 | [diff] [blame] | 65 | |
| 66 | merge.<driver>.name:: |
Ralf Wildenhues | 29b802a | 2008-12-09 07:23:51 +0100 | [diff] [blame] | 67 | Defines a human-readable name for a custom low-level |
SZEDER Gábor | f5a84c3 | 2008-04-06 03:23:42 +0200 | [diff] [blame] | 68 | merge driver. See linkgit:gitattributes[5] for details. |
| 69 | |
| 70 | merge.<driver>.driver:: |
| 71 | Defines the command that implements a custom low-level |
| 72 | merge driver. See linkgit:gitattributes[5] for details. |
| 73 | |
| 74 | merge.<driver>.recursive:: |
| 75 | Names a low-level merge driver to be used when |
| 76 | performing an internal merge between common ancestors. |
| 77 | See linkgit:gitattributes[5] for details. |