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

Re: [PATCH] docs: remove {litdd} usage

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 23, 2026, 18:20 UTC
Message-ID
<xmqq5x7nnwyk.fsf@gitster.g>
In-Reply-To
<pull.2215.git.git.1771846234706.gitgitgadget@gmail.com>
"Michael Ryzhikov via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 15 quoted lines
> From: samonon <samonon@gmail.com>
>
> *** Problem.
> {litdd} is used as alias for -- (when not inside backticks) because --
> is a reserved text in asciidoc. There is some problems with this:
> - need to remember that in some cases -- should be replaced with {litdd}
> - unnecessary config options when exporting adoc to other formats
> - in HTML it looks like "&#x2d;&#x2d;" instead of "--" (it works, but
>    browser should correctly decode hex symbols in html link:
>    see htmldocs/git-sh-i18n.html)
>
> *** Solution
> For better readability just escape -- using \.
> This is default asciidoc mechanism that don't need any configuration.
> Tested with "make all doc" - links inside linkgit: work.

Hmph, I do not quite see the point of this churn. We'd need to remember to do \-- instead of doing {litdd}, either way.

I do not know what you want to say with "when exporting to other formats", as we already are formatting these source files into HTML and manual pages.

Previous: Michael Ryzhikov via GitGitGadgetNext: Михаил Рыжиков
Message 2 of 3 in “docs: remove {litdd} usage”
  1. docs: remove {litdd} usageMichael Ryzhikov via GitGitGadget, Feb 23, 2026
  2. Junio C HamanoFeb 23, 2026
  3. Михаил РыжиковFeb 24, 2026

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.