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

Re: [PATCH 1/2] Documentation/git-show-branch: drop last use of {apostrophe}

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Apr 6, 2019, 09:21 UTC
Message-ID
<CAN0heSoNNb4QLqQfkgPZRBD2TJ3h1JM3udyRyHnuoOcWbe94Zg@mail.gmail.com>
In-Reply-To
<20190405225115.3882-2-tmz@pobox.com>
On Sat, 6 Apr 2019 at 00:51, Todd Zullinger <tmz@pobox.com> wrote:
Show 8 quoted lines
>
> The {apostrophe} was needed at the time of a521845800 ("Documentation:
> remove stray backslash in show-branch discussion", 2010-08-20).  All
> other uses of {apostrophe} were removed in 6cf378f0cb ("docs: stop using
> asciidoc no-inline-literal", 2012-04-26).
>
> Escape only the leading single-quote.  This renders properly in asciidoc
> and asciidoctor.

You could perhaps say that "{apostrophe}" renders literally with Asciidoctor (at least with 1.5.5). Right now, you sort of undersell this patch. I know from context that you have some Asciidoctor "issue", but it's not clear from this patch alone.

Show 6 quoted lines
> ---
>
> Maybe it would be easier to change the example commit messages
> and avoid having to nest single quotes within double quotes?  I
> don't know if that's much preferable to escaping only the opening
> single quote.

Yeah, those commit messages are a bit unfortunate from the point of view of quoting. Avoiding all that nesting would probably improve the reading experience, but I don't think that should hold up this patch.

Show 5 quoted lines
> This is another potential parsing bug in asciidoctor.  Of course,
> distros will have versions of asciidoctor in place for some time
> which have trouble parsing this doc.  Since it's not much work
> for us to adjust the text to work around it, that seemed
> reasonable.
Agreed.
Martin
Previous: Todd ZullingerNext: Todd Zullinger
Message 20 of 23 in “minor asciidoc/tor formatting fixes”
  1. 0/2 minor asciidoc/tor formatting fixesTodd Zullinger, Mar 30, 2019
  2. 2/2 Documentation/git-status: fix titles in porcelain v2 sectionTodd Zullinger, Mar 30, 2019
  3. Jeff KingApr 1, 2019
  4. Todd ZullingerApr 5, 2019
  5. Jeff HostetlerApr 3, 2019
  6. Todd ZullingerApr 5, 2019
  7. 1/2 Documentation/rev-list-options: wrap --date=<format> block with "--"Todd Zullinger, Mar 30, 2019
  8. Jeff KingApr 1, 2019
  9. Todd ZullingerApr 5, 2019
  10. Martin ÅgrenApr 3, 2019
  11. Todd ZullingerApr 5, 2019
  12. Martin ÅgrenApr 5, 2019
  13. 0/2 a few more minor asciidoc/tor formatting fixesTodd Zullinger, Apr 5, 2019
  14. Martin ÅgrenApr 6, 2019
  15. 1/2 Documentation/git-show-branch: avoid literal {apostrophe}Todd Zullinger, Apr 10, 2019
  16. 2/2 Documentation/git-svn: improve asciidoctor compatibilityTodd Zullinger, Apr 10, 2019
  17. 0/2 a few more minor asciidoc/tor formatting fixesTodd Zullinger, Apr 10, 2019
  18. Junio C HamanoApr 10, 2019
  19. 1/2 Documentation/git-show-branch: drop last use of {apostrophe}Todd Zullinger, Apr 5, 2019
  20. Martin ÅgrenApr 6, 2019
  21. 2/2 Documentation/git-svn: improve asciidoctor compatibilityTodd Zullinger, Apr 5, 2019
  22. Martin ÅgrenApr 6, 2019
  23. Todd ZullingerApr 10, 2019

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.