git/list[1] front-page[2] threads[3] people[4] search[5] about
 

pull-fetch-param.txt (was Re: [PATCH] escape tilde in Documentation/git-rev-parse.txt)

From
SRStefan 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/
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 23 in “escape tilde in Documentation/git-rev-parse.txt”
  1. escape tilde in Documentation/git-rev-parse.txtStefan Richter, Oct 2, 2006
  2. Junio C HamanoOct 3, 2006
  3. Stefan RichterOct 3, 2006
  4. Junio C HamanoOct 3, 2006
  5. pull-fetch-param.txt (was Re: [PATCH] escape tilde in Documentation/git-rev-parse.txt)Stefan Richter, Oct 3, 2006
  6. Junio C HamanoOct 3, 2006
  7. Stuart RackhamOct 3, 2006
  8. Junio C HamanoOct 4, 2006
  9. asciidoc 7--8 compatibility (was Re: pull-fetch-param.txt)Stefan Richter, Oct 4, 2006
  10. Stuart RackhamOct 4, 2006
  11. Stefan RichterOct 4, 2006
  12. Stuart RackhamOct 4, 2006
  13. Stefan RichterOct 4, 2006
  14. Stefan RichterOct 4, 2006
  15. Gerrit PapeJul 12, 2007
  16. Junio C HamanoJul 12, 2007
  17. Gerrit PapeJul 13, 2007
  18. Junio C HamanoJul 13, 2007
  19. Gerrit PapeJul 13, 2007
  20. Gerrit PapeJul 20, 2007
  21. Junio C HamanoJul 20, 2007
  22. Julian PhillipsJul 20, 2007
  23. Junio C HamanoJul 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.