Skip to content

Commit 8d24cb9

Browse files
committed
docs: remove {litdd} usage
*** Problem. {litdd} is used as alias for -- (when not inside backticks) because -- is a reserved text in asciidoc. There is some problems with this: - need to remember that in some cases -- should be replaced with {litdd} - unnecessary config options when exporting adoc to other formats - in HTML it looks like "&#x2d;&#x2d;" instead of "--" (it works, but browser should correctly decode hex symbols in html link: see htmldocs/git-sh-i18n.html) *** Solution For better readability just escape -- using \. This is default asciidoc mechanism that don't need any configuration. Tested with "make all doc" - links inside linkgit: work. Signed-off-by: samonon <samonon@gmail.com>
1 parent 7c02d39 commit 8d24cb9

19 files changed

Lines changed: 40 additions & 44 deletions

Documentation/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ ASCIIDOC_HTML = xhtml5
223223
ASCIIDOC_DOCBOOK = docbook5
224224
ASCIIDOC_EXTRA += -acompat-mode -atabsize=8
225225
ASCIIDOC_EXTRA += -I. -rasciidoctor-extensions
226-
ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
227226
ASCIIDOC_EXTRA += -adocinfo=shared
228227
ASCIIDOC_DEPS = asciidoctor-extensions.rb GIT-ASCIIDOCFLAGS
229228
DBLATEX_COMMON =

Documentation/SubmittingPatches

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The people who may need to know are the ones who worked on the code
3535
you are touching. These people happen to be the ones who are
3636
most likely to be knowledgeable enough to help you, but
3737
they have no obligation to help you (i.e. you ask them for help,
38-
you don't demand). +git log -p {litdd} _$area_you_are_modifying_+ would
38+
you don't demand). +git log -p \-- _$area_you_are_modifying_+ would
3939
help you find out who they are.
4040

4141
. You get comments and suggestions for improvements. You may even get

Documentation/asciidoc.conf.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ backslash=&#92;
2020
tilde=&#126;
2121
apostrophe=&#39;
2222
backtick=&#96;
23-
litdd=&#45;&#45;
2423
manmanual=Git Manual
2524
mansource=Git @GIT_VERSION@
2625
revdate=@GIT_DATE@

Documentation/config/browser.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
browser.<tool>.cmd::
22
Specify the command to invoke the specified browser. The
33
specified command is evaluated in shell with the URLs passed
4-
as arguments. (See linkgit:git-web{litdd}browse[1].)
4+
as arguments. (See linkgit:git-web\--browse[1].)
55

66
browser.<tool>.path::
77
Override the path for the given tool that may be used to

Documentation/config/core.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ core.protectNTFS::
6363

6464
core.fsmonitor::
6565
If set to true, enable the built-in file system monitor
66-
daemon for this working directory (linkgit:git-fsmonitor{litdd}daemon[1]).
66+
daemon for this working directory (linkgit:git-fsmonitor\--daemon[1]).
6767
+
6868
Like hook-based file system monitors, the built-in file system monitor
6969
can speed up Git commands that need to refresh the Git index

Documentation/git-archimport.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ archives that it imports, it is also possible to specify Git branch names
4545
manually. To do so, write a Git branch name after each <archive>/<branch>
4646
parameter, separated by a colon. This way, you can shorten the Arch
4747
branch names and convert Arch jargon to Git jargon, for example mapping a
48-
"PROJECT{litdd}devo{litdd}VERSION" branch to "master".
48+
"PROJECT\--devo\--VERSION" branch to "master".
4949

5050
Associating multiple Arch branches to one Git branch is possible; the
5151
result will make the most sense only if no commits are made to the first
@@ -86,8 +86,8 @@ OPTIONS
8686
-o::
8787
Use this for compatibility with old-style branch names used by
8888
earlier versions of 'git archimport'. Old-style branch names
89-
were category{litdd}branch, whereas new-style branch names are
90-
archive,category{litdd}branch{litdd}version. In both cases, names given
89+
were category\--branch, whereas new-style branch names are
90+
archive,category\--branch\--version. In both cases, names given
9191
on the command-line will override the automatically-generated
9292
ones.
9393

Documentation/git-credential-cache--daemon.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
git-credential-cache{litdd}daemon(1)
2-
====================================
1+
git-credential-cache\--daemon(1)
2+
================================
33

44
NAME
55
----
@@ -8,7 +8,7 @@ git-credential-cache--daemon - Temporarily store user credentials in memory
88
SYNOPSIS
99
--------
1010
[verse]
11-
'git credential-cache{litdd}daemon' [--debug] <socket-path>
11+
'git credential-cache\--daemon' [--debug] <socket-path>
1212

1313
DESCRIPTION
1414
-----------

Documentation/git-fsmonitor--daemon.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
git-fsmonitor{litdd}daemon(1)
2-
=============================
1+
git-fsmonitor\--daemon(1)
2+
=========================
33

44
NAME
55
----
@@ -8,10 +8,10 @@ git-fsmonitor--daemon - A Built-in Filesystem Monitor
88
SYNOPSIS
99
--------
1010
[verse]
11-
'git fsmonitor{litdd}daemon' start
12-
'git fsmonitor{litdd}daemon' run
13-
'git fsmonitor{litdd}daemon' stop
14-
'git fsmonitor{litdd}daemon' status
11+
'git fsmonitor\--daemon' start
12+
'git fsmonitor\--daemon' run
13+
'git fsmonitor\--daemon' stop
14+
'git fsmonitor\--daemon' status
1515

1616
DESCRIPTION
1717
-----------

Documentation/git-help.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ other display programs (see below).
110110
+
111111
The web browser can be specified using the configuration variable
112112
`help.browser`, or `web.browser` if the former is not set. If neither of
113-
these config variables is set, the 'git web{litdd}browse' helper script
113+
these config variables is set, the 'git web\--browse' helper script
114114
(called by 'git help') will pick a suitable default. See
115-
linkgit:git-web{litdd}browse[1] for more information about this.
115+
linkgit:git-web\--browse[1] for more information about this.
116116

117117
CONFIGURATION VARIABLES
118118
-----------------------
@@ -135,7 +135,7 @@ help.browser, web.browser, and browser.<tool>.path
135135
The `help.browser`, `web.browser` and `browser.<tool>.path` will also
136136
be checked if the 'web' format is chosen (either by command-line
137137
option or configuration variable). See '-w|--web' in the OPTIONS
138-
section above and linkgit:git-web{litdd}browse[1].
138+
section above and linkgit:git-web\--browse[1].
139139

140140
man.viewer
141141
~~~~~~~~~~

Documentation/git-instaweb.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ OPTIONS
4545
-b::
4646
--browser::
4747
The web browser that should be used to view the gitweb
48-
page. This will be passed to the 'git web{litdd}browse' helper
48+
page. This will be passed to the 'git web\--browse' helper
4949
script along with the URL of the gitweb instance. See
50-
linkgit:git-web{litdd}browse[1] for more information about this. If
50+
linkgit:git-web\--browse[1] for more information about this. If
5151
the script fails, the URL will be printed to stdout.
5252

5353
start::
@@ -83,7 +83,7 @@ You may specify configuration in your .git/config
8383

8484
If the configuration variable `instaweb.browser` is not set,
8585
`web.browser` will be used instead if it is defined. See
86-
linkgit:git-web{litdd}browse[1] for more information about this.
86+
linkgit:git-web\--browse[1] for more information about this.
8787

8888
SEE ALSO
8989
--------

0 commit comments

Comments
 (0)