Skip to content

Commit 4f91e60

Browse files
committed
Merge branch 'ja/doc-synopsis-style'
Doc mark-up fixes. * ja/doc-synopsis-style: doc: convert git-switch manpage to new synopsis style doc: convert git-mergetool options to new synopsis style doc: convert git-mergetool manpage to new synopsis style doc: switch merge config description to new synopsis format doc: convert merge strategies to synopsis format doc: merge-options.adoc remove a misleading double negation doc: convert merge options to new synopsis format doc: convert git-merge manpage to new style doc: convert git-checkout manpage to new style
2 parents 7014b55 + b983aaa commit 4f91e60

12 files changed

+403
-400
lines changed

Documentation/config/checkout.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
checkout.defaultRemote::
1+
`checkout.defaultRemote`::
22
When you run `git checkout <something>`
33
or `git switch <something>` and only have one
44
remote, it may implicitly fall back on checking out and
55
tracking e.g. `origin/<something>`. This stops working as soon
6-
as you have more than one remote with a `<something>`
6+
as you have more than one remote with a _<something>_
77
reference. This setting allows for setting the name of a
88
preferred remote that should always win when it comes to
99
disambiguation. The typical use-case is to set this to
@@ -12,31 +12,31 @@ checkout.defaultRemote::
1212
Currently this is used by linkgit:git-switch[1] and
1313
linkgit:git-checkout[1] when `git checkout <something>`
1414
or `git switch <something>`
15-
will checkout the `<something>` branch on another remote,
15+
will checkout the _<something>_ branch on another remote,
1616
and by linkgit:git-worktree[1] when `git worktree add` refers to a
1717
remote branch. This setting might be used for other checkout-like
1818
commands or functionality in the future.
1919

20-
checkout.guess::
20+
`checkout.guess`::
2121
Provides the default value for the `--guess` or `--no-guess`
2222
option in `git checkout` and `git switch`. See
2323
linkgit:git-switch[1] and linkgit:git-checkout[1].
2424

25-
checkout.workers::
25+
`checkout.workers`::
2626
The number of parallel workers to use when updating the working tree.
2727
The default is one, i.e. sequential execution. If set to a value less
2828
than one, Git will use as many workers as the number of logical cores
2929
available. This setting and `checkout.thresholdForParallelism` affect
3030
all commands that perform checkout. E.g. checkout, clone, reset,
3131
sparse-checkout, etc.
3232
+
33-
Note: Parallel checkout usually delivers better performance for repositories
33+
NOTE: Parallel checkout usually delivers better performance for repositories
3434
located on SSDs or over NFS. For repositories on spinning disks and/or machines
3535
with a small number of cores, the default sequential checkout often performs
3636
better. The size and compression level of a repository might also influence how
3737
well the parallel version performs.
3838

39-
checkout.thresholdForParallelism::
39+
`checkout.thresholdForParallelism`::
4040
When running parallel checkout with a small number of files, the cost
4141
of subprocess spawning and inter-process communication might outweigh
4242
the parallelization gains. This setting allows you to define the minimum

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.

Documentation/config/mergetool.adoc

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
mergetool.<tool>.path::
1+
`mergetool.<tool>.path`::
22
Override the path for the given tool. This is useful in case
3-
your tool is not in the PATH.
3+
your tool is not in the `$PATH`.
44

5-
mergetool.<tool>.cmd::
5+
`mergetool.<tool>.cmd`::
66
Specify the command to invoke the specified merge tool. The
77
specified command is evaluated in shell with the following
8-
variables available: 'BASE' is the name of a temporary file
8+
variables available: `BASE` is the name of a temporary file
99
containing the common base of the files to be merged, if available;
10-
'LOCAL' is the name of a temporary file containing the contents of
11-
the file on the current branch; 'REMOTE' is the name of a temporary
10+
`LOCAL` is the name of a temporary file containing the contents of
11+
the file on the current branch; `REMOTE` is the name of a temporary
1212
file containing the contents of the file from the branch being
13-
merged; 'MERGED' contains the name of the file to which the merge
13+
merged; `MERGED` contains the name of the file to which the merge
1414
tool should write the results of a successful merge.
1515

16-
mergetool.<tool>.hideResolved::
16+
`mergetool.<tool>.hideResolved`::
1717
Allows the user to override the global `mergetool.hideResolved` value
1818
for a specific tool. See `mergetool.hideResolved` for the full
1919
description.
2020

21-
mergetool.<tool>.trustExitCode::
21+
`mergetool.<tool>.trustExitCode`::
2222
For a custom merge command, specify whether the exit code of
2323
the merge command can be used to determine whether the merge was
2424
successful. If this is not set to true then the merge target file
2525
timestamp is checked, and the merge is assumed to have been successful
2626
if the file has been updated; otherwise, the user is prompted to
2727
indicate the success of the merge.
2828

29-
mergetool.meld.hasOutput::
29+
`mergetool.meld.hasOutput`::
3030
Older versions of `meld` do not support the `--output` option.
3131
Git will attempt to detect whether `meld` supports `--output`
3232
by inspecting the output of `meld --help`. Configuring
@@ -35,7 +35,7 @@ mergetool.meld.hasOutput::
3535
to `true` tells Git to unconditionally use the `--output` option,
3636
and `false` avoids using `--output`.
3737

38-
mergetool.meld.useAutoMerge::
38+
`mergetool.meld.useAutoMerge`::
3939
When the `--auto-merge` is given, meld will merge all non-conflicting
4040
parts automatically, highlight the conflicting parts, and wait for
4141
user decision. Setting `mergetool.meld.useAutoMerge` to `true` tells
@@ -45,55 +45,55 @@ mergetool.meld.useAutoMerge::
4545
value of `false` avoids using `--auto-merge` altogether, and is the
4646
default value.
4747

48-
mergetool.<vimdiff variant>.layout::
49-
Configure the split window layout for vimdiff's `<variant>`, which is any of `vimdiff`,
48+
`mergetool.<variant>.layout`::
49+
Configure the split window layout for vimdiff's _<variant>_, which is any of `vimdiff`,
5050
`nvimdiff`, `gvimdiff`.
5151
Upon launching `git mergetool` with `--tool=<variant>` (or without `--tool`
52-
if `merge.tool` is configured as `<variant>`), Git will consult
52+
if `merge.tool` is configured as _<variant>_), Git will consult
5353
`mergetool.<variant>.layout` to determine the tool's layout. If the
54-
variant-specific configuration is not available, `vimdiff`'s is used as
54+
variant-specific configuration is not available, `vimdiff` ' s is used as
5555
fallback. If that too is not available, a default layout with 4 windows
56-
will be used. To configure the layout, see the `BACKEND SPECIFIC HINTS`
56+
will be used. To configure the layout, see the 'BACKEND SPECIFIC HINTS'
5757
ifdef::git-mergetool[]
5858
section.
5959
endif::[]
6060
ifndef::git-mergetool[]
6161
section in linkgit:git-mergetool[1].
6262
endif::[]
6363

64-
mergetool.hideResolved::
64+
`mergetool.hideResolved`::
6565
During a merge, Git will automatically resolve as many conflicts as
66-
possible and write the 'MERGED' file containing conflict markers around
67-
any conflicts that it cannot resolve; 'LOCAL' and 'REMOTE' normally
68-
represent the versions of the file from before Git's conflict
69-
resolution. This flag causes 'LOCAL' and 'REMOTE' to be overwritten so
66+
possible and write the `$MERGED` file containing conflict markers around
67+
any conflicts that it cannot resolve; `$LOCAL` and `$REMOTE` normally
68+
are the versions of the file from before Git`s conflict
69+
resolution. This flag causes `$LOCAL` and `$REMOTE` to be overwritten so
7070
that only the unresolved conflicts are presented to the merge tool. Can
7171
be configured per-tool via the `mergetool.<tool>.hideResolved`
7272
configuration variable. Defaults to `false`.
7373

74-
mergetool.keepBackup::
74+
`mergetool.keepBackup`::
7575
After performing a merge, the original file with conflict markers
7676
can be saved as a file with a `.orig` extension. If this variable
7777
is set to `false` then this file is not preserved. Defaults to
7878
`true` (i.e. keep the backup files).
7979

80-
mergetool.keepTemporaries::
80+
`mergetool.keepTemporaries`::
8181
When invoking a custom merge tool, Git uses a set of temporary
8282
files to pass to the tool. If the tool returns an error and this
8383
variable is set to `true`, then these temporary files will be
8484
preserved; otherwise, they will be removed after the tool has
8585
exited. Defaults to `false`.
8686

87-
mergetool.writeToTemp::
88-
Git writes temporary 'BASE', 'LOCAL', and 'REMOTE' versions of
87+
`mergetool.writeToTemp`::
88+
Git writes temporary `BASE`, `LOCAL`, and `REMOTE` versions of
8989
conflicting files in the worktree by default. Git will attempt
9090
to use a temporary directory for these files when set `true`.
9191
Defaults to `false`.
9292

93-
mergetool.prompt::
93+
`mergetool.prompt`::
9494
Prompt before each invocation of the merge resolution program.
9595

96-
mergetool.guiDefault::
96+
`mergetool.guiDefault`::
9797
Set `true` to use the `merge.guitool` by default (equivalent to
9898
specifying the `--gui` argument), or `auto` to select `merge.guitool`
9999
or `merge.tool` depending on the presence of a `DISPLAY` environment

0 commit comments

Comments
 (0)