pull-fetch-param.txt (was Re: [PATCH] escape tilde in Documentation/git-rev-parse.txt)
- From
- Stefan Richter <stefanr@s5r6.in-berlin.de>
- Date
- Oct 3, 2006, 09:19 UTC
- Message-ID
- <45222B18.1090305@s5r6.in-berlin.de>
- In-Reply-To
- <7vven1rfpj.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> It's a bit sad that asciidoc's nicer quoting features > are not backward compatible.
Yes, this is awkward. Here comes the next candidate for quoting. In pull-fetch-param.txt:
----8<---- <refspec>:: The canonical format of a <refspec> parameter is `+?<src>:<dst>`; that is, an optional plus `+`, followed by the source ref, followed by a colon `:`, followed by the destination ref. + The remote ref that matches <src> is fetched, and if <dst> is not empty string, the local ref that matches it is fast forwarded using <src>. Again, if the optional plus `+` is used, the local ref ---->8----
"man git-fetch" and "man git-pull" show:
----8<----
<refspec>
The canonical format of a <refspec> parameter is ?<src>:<dst>;
that is, an optional plus, followed by the source ref, followed
by a colon :, followed by the destination ref. The remote ref that matches <src> is fetched, and if <dst> is
not empty string, the local ref that matches it is fast for-
warded using <src>. Again, if the optional plus + is used, the
---->8----I.e. the first and second + were swallowed, but not the third one. This is the fix for asciidoc 8.0.0: `$$+$$?<src>:<dst>`; that is, an optional plus `+`, followed
Here is another fix that works with asciidoc 8.0.0: `\+?<src>:<dst>`; that is, an optional plus `+`, followed
Results in
----8<----
<refspec>
The canonical format of a <refspec> parameter is +?<src>:<dst>;
that is, an optional plus +, followed by the source ref, fol-
lowed by a colon :, followed by the destination ref. The remote ref that matches <src> is fetched, and if <dst> is
not empty string, the local ref that matches it is fast for-
warded using <src>. Again, if the optional plus + is used, the
---->8----Does the backslash notation work with asciidoc 7?
-- Stefan Richter -=====-=-==- =-=- ---== http://arcgraph.de/sr/