Skip to content

Commit 90a837a

Browse files
jnavilagitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 179f877 commit 90a837a

File tree

2 files changed

+48
-44
lines changed

2 files changed

+48
-44
lines changed

Documentation/config/fmt-merge-msg.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
merge.branchdesc::
1+
`merge.branchdesc`::
22
In addition to branch names, populate the log message with
33
the branch description text associated with them. Defaults
44
to false.
55

6-
merge.log::
6+
`merge.log`::
77
In addition to branch names, populate the log message with at
88
most the specified number of one-line descriptions from the
99
actual commits that are being merged. Defaults to false, and
1010
true is a synonym for 20.
1111

12-
merge.suppressDest::
12+
`merge.suppressDest`::
1313
By adding a glob that matches the names of integration
1414
branches to this multi-valued configuration variable, the
1515
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
1717
its title.
1818
+
1919
An element with an empty value can be used to clear the list

Documentation/config/merge.adoc

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
merge.conflictStyle::
1+
`merge.conflictStyle`::
22
Specify the style in which conflicted hunks are written out to
33
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,
55
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 +|||||||+
77
marker and the original text before the `=======` marker. The
88
"merge" style tends to produce smaller conflict regions than diff3,
99
both because of the exclusion of the original text, and because
@@ -13,17 +13,17 @@ merge.conflictStyle::
1313
the conflict region when those matching lines appear near either
1414
the beginning or end of a conflict region.
1515

16-
merge.defaultToUpstream::
16+
`merge.defaultToUpstream`::
1717
If merge is called without any commit argument, merge the upstream
1818
branches configured for the current branch by using their last
1919
observed values stored in their remote-tracking branches.
2020
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`
2222
are consulted, and then they are mapped via `remote.<remote>.fetch`
2323
to their corresponding remote-tracking branches, and the tips of
2424
these tracking branches are merged. Defaults to true.
2525

26-
merge.ff::
26+
`merge.ff`::
2727
By default, Git does not create an extra merge commit when merging
2828
a commit that is a descendant of the current commit. Instead, the
2929
tip of the current branch is fast-forwarded. When set to `false`,
@@ -33,94 +33,98 @@ merge.ff::
3333
allowed (equivalent to giving the `--ff-only` option from the
3434
command line).
3535

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
3838
line option. See linkgit:git-merge[1] for details.
3939

4040
include::fmt-merge-msg.adoc[]
4141

42-
merge.renameLimit::
42+
`merge.renameLimit`::
4343
The number of files to consider in the exhaustive portion of
4444
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,
4747
currently defaults to 7000. This setting has no effect if
4848
rename detection is turned off.
4949

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.
5353
Defaults to the value of diff.renames.
5454

55-
merge.directoryRenames::
55+
`merge.directoryRenames`::
5656
Whether Git detects directory renames, affecting what happens at
5757
merge time to new files added to a directory on one side of
5858
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".
67-
68-
merge.renormalize::
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`.
71+
72+
`merge.renormalize`::
6973
Tell Git that canonical representation of files in the
7074
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
7276
endings). In such a repository, for each file where a
7377
three-way content merge is needed, Git can convert the data
7478
recorded in commits to a canonical form before performing a
7579
merge to reduce unnecessary conflicts. For more information,
7680
see section "Merging branches with differing checkin/checkout
7781
attributes" in linkgit:gitattributes[5].
7882

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
8185
at the end of the merge. True by default.
8286

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
8589
before the operation begins, and apply it after the operation
8690
ends. This means that you can run merge on a dirty worktree.
8791
However, use with care: the final stash application after a
8892
successful merge might result in non-trivial conflicts.
8993
This option can be overridden by the `--no-autostash` and
9094
`--autostash` options of linkgit:git-merge[1].
91-
Defaults to false.
95+
Defaults to `false`.
9296

93-
merge.tool::
97+
`merge.tool`::
9498
Controls which merge tool is used by linkgit:git-mergetool[1].
9599
The list below shows the valid built-in values.
96100
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.
98102

99-
merge.guitool::
103+
`merge.guitool`::
100104
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.
102106
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.
104108

105109
include::{build_dir}/mergetools-merge.adoc[]
106110

107-
merge.verbosity::
111+
`merge.verbosity`::
108112
Controls the amount of output shown by the recursive merge
109113
strategy. Level 0 outputs nothing except a final error
110114
message if conflicts were detected. Level 1 outputs only
111115
conflicts, 2 outputs conflicts and file changes. Level 5 and
112116
above outputs debugging information. The default is level 2.
113117
Can be overridden by the `GIT_MERGE_VERBOSITY` environment variable.
114118

115-
merge.<driver>.name::
119+
`merge.<driver>.name`::
116120
Defines a human-readable name for a custom low-level
117121
merge driver. See linkgit:gitattributes[5] for details.
118122

119-
merge.<driver>.driver::
123+
`merge.<driver>.driver`::
120124
Defines the command that implements a custom low-level
121125
merge driver. See linkgit:gitattributes[5] for details.
122126

123-
merge.<driver>.recursive::
127+
`merge.<driver>.recursive`::
124128
Names a low-level merge driver to be used when
125129
performing an internal merge between common ancestors.
126130
See linkgit:gitattributes[5] for details.

0 commit comments

Comments
 (0)