From: Jean-Noël Avila Date: Sat, 20 Jul 2024 17:34:13 +0000 (+0000) Subject: doc: git-clone fix discrepancy between asciidoc and asciidoctor X-Git-Tag: v2.46.0-rc2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6474da0aa4d411e12fd4962b3e81c6d4e9db6b12;p=thirdparty%2Fgit.git doc: git-clone fix discrepancy between asciidoc and asciidoctor Asciidoc.py does not have the concept of generalized roles, whereas asciidoctor interprets [foo]`blah` as blah with role foo in the synopsis, making in effect foo disappear in the output. Note that square brackets not directly followed by an inline markup do not define a role, which is why we do not have the issue on other parts of the documentation. In order to get a consistant result across asciidoctor and asciidoc.py, the hack is to use the {empty} entity to split the bracket part from the inline format part. Signed-off-by: Jean-Noël Avila Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 5de18de2ab..8e925db7e9 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -13,9 +13,9 @@ SYNOPSIS [`-l`] [`-s`] [`--no-hardlinks`] [`-q`] [`-n`] [`--bare`] [`--mirror`] [`-o` __] [`-b` __] [`-u` __] [`--reference` __] [`--dissociate`] [`--separate-git-dir` __] - [`--depth` __] [`--`[`no-`]`single-branch`] [`--no-tags`] - [++--recurse-submodules++[++=++____]] [`--`[`no-`]`shallow-submodules`] - [`--`[`no-`]`remote-submodules`] [`--jobs` __] [`--sparse`] [`--`[`no-`]`reject-shallow`] + [`--depth` __] [`--`[`no-`]{empty}`single-branch`] [`--no-tags`] + [++--recurse-submodules++[++=++____]] [++--++[++no-++]{empty}++shallow-submodules++] + [`--`[`no-`]{empty}`remote-submodules`] [`--jobs` __] [`--sparse`] [`--`[`no-`]{empty}`reject-shallow`] [++--filter=++____] [`--also-filter-submodules`]] [`--`] __ [__]