Git fork

doc: switch merge config description to new synopsis format

- Use _<placeholder>_ instead of <placeholder> in the description
- Use `backticks` for keywords and more complex option
descriptions. The new rendering engine will apply synopsis rules to
these spans.

Additionally, a list of option possible values has been reformatted as a
standalone definition list.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Jean-Noël Avila and committed by
Junio C Hamano
90a837a7 179f877b

+47 -43
+4 -4
Documentation/config/fmt-merge-msg.adoc
··· 1 - merge.branchdesc:: 1 + `merge.branchdesc`:: 2 2 In addition to branch names, populate the log message with 3 3 the branch description text associated with them. Defaults 4 4 to false. 5 5 6 - merge.log:: 6 + `merge.log`:: 7 7 In addition to branch names, populate the log message with at 8 8 most the specified number of one-line descriptions from the 9 9 actual commits that are being merged. Defaults to false, and 10 10 true is a synonym for 20. 11 11 12 - merge.suppressDest:: 12 + `merge.suppressDest`:: 13 13 By adding a glob that matches the names of integration 14 14 branches to this multi-valued configuration variable, the 15 15 default merge message computed for merges into these 16 - integration branches will omit "into <branch name>" from 16 + integration branches will omit "into _<branch-name>_" from 17 17 its title. 18 18 + 19 19 An element with an empty value can be used to clear the list
+43 -39
Documentation/config/merge.adoc
··· 1 - merge.conflictStyle:: 1 + `merge.conflictStyle`:: 2 2 Specify the style in which conflicted hunks are written out to 3 3 working tree files upon merge. The default is "merge", which 4 - shows a `<<<<<<<` conflict marker, changes made by one side, 4 + shows a +<<<<<<<+ conflict marker, changes made by one side, 5 5 a `=======` marker, changes made by the other side, and then 6 - a `>>>>>>>` marker. An alternate style, "diff3", adds a `|||||||` 6 + a +>>>>>>>+ marker. An alternate style, "diff3", adds a +|||||||+ 7 7 marker and the original text before the `=======` marker. The 8 8 "merge" style tends to produce smaller conflict regions than diff3, 9 9 both because of the exclusion of the original text, and because ··· 13 13 the conflict region when those matching lines appear near either 14 14 the beginning or end of a conflict region. 15 15 16 - merge.defaultToUpstream:: 16 + `merge.defaultToUpstream`:: 17 17 If merge is called without any commit argument, merge the upstream 18 18 branches configured for the current branch by using their last 19 19 observed values stored in their remote-tracking branches. 20 20 The values of the `branch.<current branch>.merge` that name the 21 - branches at the remote named by `branch.<current branch>.remote` 21 + branches at the remote named by `branch.<current-branch>.remote` 22 22 are consulted, and then they are mapped via `remote.<remote>.fetch` 23 23 to their corresponding remote-tracking branches, and the tips of 24 24 these tracking branches are merged. Defaults to true. 25 25 26 - merge.ff:: 26 + `merge.ff`:: 27 27 By default, Git does not create an extra merge commit when merging 28 28 a commit that is a descendant of the current commit. Instead, the 29 29 tip of the current branch is fast-forwarded. When set to `false`, ··· 33 33 allowed (equivalent to giving the `--ff-only` option from the 34 34 command line). 35 35 36 - merge.verifySignatures:: 37 - If true, this is equivalent to the --verify-signatures command 36 + `merge.verifySignatures`:: 37 + If true, this is equivalent to the `--verify-signatures` command 38 38 line option. See linkgit:git-merge[1] for details. 39 39 40 40 include::fmt-merge-msg.adoc[] 41 41 42 - merge.renameLimit:: 42 + `merge.renameLimit`:: 43 43 The number of files to consider in the exhaustive portion of 44 44 rename detection during a merge. If not specified, defaults 45 - to the value of diff.renameLimit. If neither 46 - merge.renameLimit nor diff.renameLimit are specified, 45 + to the value of `diff.renameLimit`. If neither 46 + `merge.renameLimit` nor `diff.renameLimit` are specified, 47 47 currently defaults to 7000. This setting has no effect if 48 48 rename detection is turned off. 49 49 50 - merge.renames:: 51 - Whether Git detects renames. If set to "false", rename detection 52 - is disabled. If set to "true", basic rename detection is enabled. 50 + `merge.renames`:: 51 + Whether Git detects renames. If set to `false`, rename detection 52 + is disabled. If set to `true`, basic rename detection is enabled. 53 53 Defaults to the value of diff.renames. 54 54 55 - merge.directoryRenames:: 55 + `merge.directoryRenames`:: 56 56 Whether Git detects directory renames, affecting what happens at 57 57 merge time to new files added to a directory on one side of 58 58 history when that directory was renamed on the other side of 59 - history. If merge.directoryRenames is set to "false", directory 60 - rename detection is disabled, meaning that such new files will be 61 - left behind in the old directory. If set to "true", directory 62 - rename detection is enabled, meaning that such new files will be 63 - moved into the new directory. If set to "conflict", a conflict 64 - will be reported for such paths. If merge.renames is false, 65 - merge.directoryRenames is ignored and treated as false. Defaults 66 - to "conflict". 59 + history. Possible values are: 60 + + 61 + -- 62 + `false`;; Directory rename detection is disabled, meaning that such new files will be 63 + left behind in the old directory. 64 + `true`;; Directory rename detection is enabled, meaning that such new files will be 65 + moved into the new directory. 66 + `conflict`;; A conflict will be reported for such paths. 67 + -- 68 + + 69 + If `merge.renames` is `false`, `merge.directoryRenames` is ignored and treated 70 + as `false`. Defaults to `conflict`. 67 71 68 - merge.renormalize:: 72 + `merge.renormalize`:: 69 73 Tell Git that canonical representation of files in the 70 74 repository has changed over time (e.g. earlier commits record 71 - text files with CRLF line endings, but recent ones use LF line 75 + text files with _CRLF_ line endings, but recent ones use _LF_ line 72 76 endings). In such a repository, for each file where a 73 77 three-way content merge is needed, Git can convert the data 74 78 recorded in commits to a canonical form before performing a ··· 76 80 see section "Merging branches with differing checkin/checkout 77 81 attributes" in linkgit:gitattributes[5]. 78 82 79 - merge.stat:: 80 - Whether to print the diffstat between ORIG_HEAD and the merge result 83 + `merge.stat`:: 84 + Whether to print the diffstat between `ORIG_HEAD` and the merge result 81 85 at the end of the merge. True by default. 82 86 83 - merge.autoStash:: 84 - When set to true, automatically create a temporary stash entry 87 + `merge.autoStash`:: 88 + When set to `true`, automatically create a temporary stash entry 85 89 before the operation begins, and apply it after the operation 86 90 ends. This means that you can run merge on a dirty worktree. 87 91 However, use with care: the final stash application after a 88 92 successful merge might result in non-trivial conflicts. 89 93 This option can be overridden by the `--no-autostash` and 90 94 `--autostash` options of linkgit:git-merge[1]. 91 - Defaults to false. 95 + Defaults to `false`. 92 96 93 - merge.tool:: 97 + `merge.tool`:: 94 98 Controls which merge tool is used by linkgit:git-mergetool[1]. 95 99 The list below shows the valid built-in values. 96 100 Any other value is treated as a custom merge tool and requires 97 - that a corresponding mergetool.<tool>.cmd variable is defined. 101 + that a corresponding `mergetool.<tool>.cmd` variable is defined. 98 102 99 - merge.guitool:: 103 + `merge.guitool`:: 100 104 Controls which merge tool is used by linkgit:git-mergetool[1] when the 101 - -g/--gui flag is specified. The list below shows the valid built-in values. 105 + `-g`/`--gui` flag is specified. The list below shows the valid built-in values. 102 106 Any other value is treated as a custom merge tool and requires that a 103 - corresponding mergetool.<guitool>.cmd variable is defined. 107 + corresponding `mergetool.<guitool>.cmd` variable is defined. 104 108 105 109 include::{build_dir}/mergetools-merge.adoc[] 106 110 107 - merge.verbosity:: 111 + `merge.verbosity`:: 108 112 Controls the amount of output shown by the recursive merge 109 113 strategy. Level 0 outputs nothing except a final error 110 114 message if conflicts were detected. Level 1 outputs only ··· 112 116 above outputs debugging information. The default is level 2. 113 117 Can be overridden by the `GIT_MERGE_VERBOSITY` environment variable. 114 118 115 - merge.<driver>.name:: 119 + `merge.<driver>.name`:: 116 120 Defines a human-readable name for a custom low-level 117 121 merge driver. See linkgit:gitattributes[5] for details. 118 122 119 - merge.<driver>.driver:: 123 + `merge.<driver>.driver`:: 120 124 Defines the command that implements a custom low-level 121 125 merge driver. See linkgit:gitattributes[5] for details. 122 126 123 - merge.<driver>.recursive:: 127 + `merge.<driver>.recursive`:: 124 128 Names a low-level merge driver to be used when 125 129 performing an internal merge between common ancestors. 126 130 See linkgit:gitattributes[5] for details.