Documentation/urls.txt: Use substitution to escape square brackets
This changes "[user@]" to use {startsb} and {endsb} to insert [ and ], similar to how {caret} is used in git-rev-parse.txt. [jc: Removed a well-intentioned comment that broke the final formatting from the original patch. While we are at it, updated the paragraph that claims to be equivalent to the section that was updated earlier without making matching changes.] Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jonas Fonseca committed
Jul 14, 2006 at 16:36 UTC
a3e65d74ee7ec9e6f49de7688a1cdac052910bd4
2 files changed
+11
-8
Documentation/asciidoc.conf
+2
@@ -9,6 +9,8 @@
9
10
[attributes]
11
caret=^
12
+startsb=[
13
+endsb=]
14
15
ifdef::backend-docbook[]
16
[gitlink-inlinemacro]
Documentation/urls.txt
+9
-8
@@ -10,20 +10,21 @@ to name the remote repository:
10
- https://host.xz/path/to/repo.git/
11
- git://host.xz/path/to/repo.git/
12
- git://host.xz/~user/path/to/repo.git/
13
-- ssh://+++[user@+++]host.xz/path/to/repo.git/
14
-- ssh://+++[user@+++]host.xz/~user/path/to/repo.git/
15
-- ssh://+++[user@+++]host.xz/~/path/to/repo.git
13
+- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
14
+- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
15
+- ssh://{startsb}user@{endsb}host.xz/~/path/to/repo.git
16
===============================================================
17
18
-SSH is the default transport protocol and also supports an
19
-scp-like syntax. Both syntaxes support username expansion,
18
+SSH is the default transport protocol. You can optionally specify
19
+which user to log-in as, and an alternate, scp-like syntax is also
20
+supported. Both syntaxes support username expansion,
21
as does the native git protocol. The following three are
22
identical to the last three above, respectively:
23
24
===============================================================
24
-- host.xz:/path/to/repo.git/
25
-- host.xz:~user/path/to/repo.git/
26
-- host.xz:path/to/repo.git
25
+- {startsb}user@{endsb}host.xz:/path/to/repo.git/
26
+- {startsb}user@{endsb}host.xz:~user/path/to/repo.git/
27
+- {startsb}user@{endsb}host.xz:path/to/repo.git
28
===============================================================
29
30
To sync with a local directory, use: