Skip to content

Commit d1caa58

Browse files
committed
Merge branch 'jk/asciidoc-markup-fix'
Various documentation mark-up fixes to make the output more consistent in general and also make AsciiDoctor (an alternative formatter) happier. * jk/asciidoc-markup-fix: doc: convert AsciiDoc {?foo} to ifdef::foo[] doc: put example URLs and emails inside literal backticks doc: drop backslash quoting of some curly braces doc: convert \--option to --option doc/add: reformat `--edit` option doc: fix length of underlined section-title doc: fix hanging "+"-continuation doc: fix unquoted use of "{type}" doc: fix misrendering due to `single quote'
2 parents c24e0e7 + d0258b9 commit d1caa58

19 files changed

+107
-102
lines changed

Documentation/config.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,18 +2292,18 @@ remote.<name>.skipFetchAll::
22922292

22932293
remote.<name>.receivepack::
22942294
The default program to execute on the remote side when pushing. See
2295-
option \--receive-pack of linkgit:git-push[1].
2295+
option --receive-pack of linkgit:git-push[1].
22962296

22972297
remote.<name>.uploadpack::
22982298
The default program to execute on the remote side when fetching. See
2299-
option \--upload-pack of linkgit:git-fetch-pack[1].
2299+
option --upload-pack of linkgit:git-fetch-pack[1].
23002300

23012301
remote.<name>.tagOpt::
2302-
Setting this value to \--no-tags disables automatic tag following when
2303-
fetching from remote <name>. Setting it to \--tags will fetch every
2302+
Setting this value to --no-tags disables automatic tag following when
2303+
fetching from remote <name>. Setting it to --tags will fetch every
23042304
tag from remote <name>, even if they are not reachable from remote
23052305
branch heads. Passing these flags directly to linkgit:git-fetch[1] can
2306-
override this setting. See options \--tags and \--no-tags of
2306+
override this setting. See options --tags and --no-tags of
23072307
linkgit:git-fetch[1].
23082308

23092309
remote.<name>.vcs::

Documentation/diff-generate-patch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ combined diff format
7777
Any diff-generating command can take the `-c` or `--cc` option to
7878
produce a 'combined diff' when showing a merge. This is the default
7979
format when showing merges with linkgit:git-diff[1] or
80-
linkgit:git-show[1]. Note also that you can give the `-m' option to any
80+
linkgit:git-show[1]. Note also that you can give the `-m` option to any
8181
of these commands to force generation of diffs with individual parents
8282
of a merge.
8383

Documentation/diff-options.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ ifndef::git-format-patch[]
2323
-u::
2424
--patch::
2525
Generate patch (see section on generating patches).
26-
{git-diff? This is the default.}
26+
ifdef::git-diff[]
27+
This is the default.
28+
endif::git-diff[]
2729
endif::git-format-patch[]
2830

2931
-s::
@@ -42,7 +44,9 @@ endif::git-format-patch[]
4244
ifndef::git-format-patch[]
4345
--raw::
4446
Generate the raw format.
45-
{git-diff-core? This is the default.}
47+
ifdef::git-diff-core[]
48+
This is the default.
49+
endif::git-diff-core[]
4650
endif::git-format-patch[]
4751

4852
ifndef::git-format-patch[]

Documentation/git-add.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ This effectively runs `add --interactive`, but bypasses the
9393
initial command menu and directly jumps to the `patch` subcommand.
9494
See ``Interactive mode'' for details.
9595

96-
-e, \--edit::
96+
-e::
97+
--edit::
9798
Open the diff vs. the index in an editor and let the user
9899
edit it. After the editor was closed, adjust the hunk headers
99100
and apply the patch to the index.

Documentation/git-fast-export.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ produced incorrect results if you gave these options.
6767
have been completed, or to save the marks table across
6868
incremental runs. As <file> is only opened and truncated
6969
at completion, the same path can also be safely given to
70-
\--import-marks.
70+
--import-marks.
7171
The file will not be written if no new object has been
7272
marked/exported.
7373

7474
--import-marks=<file>::
7575
Before processing any input, load the marks specified in
7676
<file>. The input file must exist, must be readable, and
77-
must use the same format as produced by \--export-marks.
77+
must use the same format as produced by --export-marks.
7878
+
7979
Any commits that have already been marked will not be exported again.
80-
If the backend uses a similar \--import-marks file, this allows for
80+
If the backend uses a similar --import-marks file, this allows for
8181
incremental bidirectional exporting of the repository by keeping the
8282
marks the same across runs.
8383

Documentation/git-fast-import.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ OPTIONS
4242
--quiet::
4343
Disable all non-fatal output, making fast-import silent when it
4444
is successful. This option disables the output shown by
45-
\--stats.
45+
--stats.
4646

4747
--stats::
4848
Display some basic statistics about the objects fast-import has
4949
created, the packfiles they were stored into, and the
5050
memory used by fast-import during this run. Showing this output
51-
is currently the default, but can be disabled with \--quiet.
51+
is currently the default, but can be disabled with --quiet.
5252

5353
Options for Frontends
5454
~~~~~~~~~~~~~~~~~~~~~
@@ -81,12 +81,12 @@ Locations of Marks Files
8181
have been completed, or to save the marks table across
8282
incremental runs. As <file> is only opened and truncated
8383
at checkpoint (or completion) the same path can also be
84-
safely given to \--import-marks.
84+
safely given to --import-marks.
8585

8686
--import-marks=<file>::
8787
Before processing any input, load the marks specified in
8888
<file>. The input file must exist, must be readable, and
89-
must use the same format as produced by \--export-marks.
89+
must use the same format as produced by --export-marks.
9090
Multiple options may be supplied to import more than one
9191
set of marks. If a mark is defined to different values,
9292
the last file wins.
@@ -179,8 +179,8 @@ fast-forward update, fast-import will skip updating that ref and instead
179179
prints a warning message. fast-import will always attempt to update all
180180
branch refs, and does not stop on the first failure.
181181

182-
Branch updates can be forced with \--force, but it's recommended that
183-
this only be used on an otherwise quiet repository. Using \--force
182+
Branch updates can be forced with --force, but it's recommended that
183+
this only be used on an otherwise quiet repository. Using --force
184184
is not necessary for an initial import into an empty repository.
185185

186186

@@ -231,11 +231,11 @@ Date Formats
231231
~~~~~~~~~~~~
232232
The following date formats are supported. A frontend should select
233233
the format it will use for this import by passing the format name
234-
in the \--date-format=<fmt> command-line option.
234+
in the --date-format=<fmt> command-line option.
235235

236236
`raw`::
237237
This is the Git native format and is `<time> SP <offutc>`.
238-
It is also fast-import's default format, if \--date-format was
238+
It is also fast-import's default format, if --date-format was
239239
not specified.
240240
+
241241
The time of the event is specified by `<time>` as the number of
@@ -437,7 +437,7 @@ the email address from the other fields in the line. Note that
437437
of bytes, except `LT`, `GT` and `LF`. `<name>` is typically UTF-8 encoded.
438438

439439
The time of the change is specified by `<when>` using the date format
440-
that was selected by the \--date-format=<fmt> command-line option.
440+
that was selected by the --date-format=<fmt> command-line option.
441441
See ``Date Formats'' above for the set of supported formats, and
442442
their syntax.
443443

@@ -600,7 +600,7 @@ be removed from the branch.
600600
See `filemodify` above for a detailed description of `<path>`.
601601

602602
`filecopy`
603-
^^^^^^^^^^^^
603+
^^^^^^^^^^
604604
Recursively copies an existing file or subdirectory to a different
605605
location within the branch. The existing file or directory must
606606
exist. If the destination exists it will be completely replaced
@@ -888,7 +888,7 @@ save out all current branch refs, tags and marks.
888888
....
889889

890890
Note that fast-import automatically switches packfiles when the current
891-
packfile reaches \--max-pack-size, or 4 GiB, whichever limit is
891+
packfile reaches --max-pack-size, or 4 GiB, whichever limit is
892892
smaller. During an automatic packfile switch fast-import does not update
893893
the branch refs, tags or marks.
894894

@@ -1226,7 +1226,7 @@ users of fast-import, and are offered here as suggestions.
12261226
Use One Mark Per Commit
12271227
~~~~~~~~~~~~~~~~~~~~~~~
12281228
When doing a repository conversion, use a unique mark per commit
1229-
(`mark :<n>`) and supply the \--export-marks option on the command
1229+
(`mark :<n>`) and supply the --export-marks option on the command
12301230
line. fast-import will dump a file which lists every mark and the Git
12311231
object SHA-1 that corresponds to it. If the frontend can tie
12321232
the marks back to the source repository, it is easy to verify the
@@ -1291,7 +1291,7 @@ even for considerably large projects (100,000+ commits).
12911291

12921292
However repacking the repository is necessary to improve data
12931293
locality and access performance. It can also take hours on extremely
1294-
large projects (especially if -f and a large \--window parameter is
1294+
large projects (especially if -f and a large --window parameter is
12951295
used). Since repacking is safe to run alongside readers and writers,
12961296
run the repack in the background and let it finish when it finishes.
12971297
There is no reason to wait to explore your new Git project!
@@ -1305,7 +1305,7 @@ Repacking Historical Data
13051305
~~~~~~~~~~~~~~~~~~~~~~~~~
13061306
If you are repacking very old imported data (e.g. older than the
13071307
last year), consider expending some extra CPU time and supplying
1308-
\--window=50 (or higher) when you run 'git repack'.
1308+
--window=50 (or higher) when you run 'git repack'.
13091309
This will take longer, but will also produce a smaller packfile.
13101310
You only need to expend the effort once, and everyone using your
13111311
project will benefit from the smaller repository.
@@ -1407,7 +1407,7 @@ branch, their in-memory storage size can grow to a considerable size
14071407
fast-import automatically moves active branches to inactive status based on
14081408
a simple least-recently-used algorithm. The LRU chain is updated on
14091409
each `commit` command. The maximum number of active branches can be
1410-
increased or decreased on the command line with \--active-branches=.
1410+
increased or decreased on the command line with --active-branches=.
14111411

14121412
per active tree
14131413
~~~~~~~~~~~~~~~

Documentation/git-fetch-pack.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ be in a separate packet, and the list must end with a flush packet.
8080
the things up in .bash_profile).
8181

8282
--exec=<git-upload-pack>::
83-
Same as \--upload-pack=<git-upload-pack>.
83+
Same as --upload-pack=<git-upload-pack>.
8484

8585
--depth=<n>::
8686
Limit fetching to ancestor-chains not longer than n.

Documentation/git-http-backend.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ automatically by the web server.
6565

6666
EXAMPLES
6767
--------
68-
All of the following examples map 'http://$hostname/git/foo/bar.git'
69-
to '/var/www/git/foo/bar.git'.
68+
All of the following examples map `http://$hostname/git/foo/bar.git`
69+
to `/var/www/git/foo/bar.git`.
7070

7171
Apache 2.x::
7272
Ensure mod_cgi, mod_alias, and mod_env are enabled, set

Documentation/git-pack-objects.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ self-contained. Use `git index-pack --fix-thin`
192192

193193
--shallow::
194194
Optimize a pack that will be provided to a client with a shallow
195-
repository. This option, combined with \--thin, can result in a
195+
repository. This option, combined with --thin, can result in a
196196
smaller pack at the cost of speed.
197197

198198
--delta-base-offset::

Documentation/git-push.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ origin +master` to force a push to the `master` branch). See the
265265

266266
--[no-]verify::
267267
Toggle the pre-push hook (see linkgit:githooks[5]). The
268-
default is \--verify, giving the hook a chance to prevent the
269-
push. With \--no-verify, the hook is bypassed completely.
268+
default is --verify, giving the hook a chance to prevent the
269+
push. With --no-verify, the hook is bypassed completely.
270270

271271

272272
include::urls-remotes.txt[]

0 commit comments

Comments
 (0)