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

Re: [RFC PATCH 4/4] doc: commit-graph.adoc: fix up some formatting

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 26, 2025, 21:21 UTC
Message-ID
<xmqqwm5kap0r.fsf@gitster.g>
In-Reply-To
<c8e40336-0a16-4da9-b251-d166f80ffeb3@ramsayjones.plus.com>
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
Show 7 quoted lines
> I tried searching the web for the answer, without success, so went with
> the 'prefix' style used here. However, when I read the above, it made me
> look at out current docs and gitworkflows.adoc showed me I should have
> used an '~' character instead.
>
> I just tried this and it works great (apart from having to \-quote the
> '{' and '}' characters in one title), so a revised 'diff' is given below.

Oy. It is one of the special things I am unsure about---would a character used for such quoting (e.g., backslash in this case) count as one display space to count the number of underlying characters?

That is, which one of these do AsciiDoc and Asciidoctor want?
    Deleting graph-\{hash\} files
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Deleting graph-\{hash\} files
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~--
There is
    OPTIONS[[OPTIONS]]
    ------------------

that appears in MyFirstContribution.adoc (even though that is an illustration of what you would write in the source and never used), and

    `builtin_objectmode`
    ~~~~~~~~~~~~~~~~~~~~

that appears in gitattributes.adoc (this one is rendered), so I've been assuming that these characters necessary for mark-up do count.

I guess this is the same "prefix is easier to write, underling is harder to write correctly" theme? If we know which one is correct and can use the correct version, then I do prefer the underlined form.

Thanks.
Previous: Ramsay JonesNext: Ramsay Jones
Message 4 of 6 in “doc: commit-graph.adoc: fix up some formatting”
  1. 4/4 doc: commit-graph.adoc: fix up some formattingRamsay Jones, Sep 26, 2025
  2. Junio C HamanoSep 26, 2025
  3. Ramsay JonesSep 26, 2025
  4. Junio C HamanoSep 26, 2025
  5. Ramsay JonesSep 26, 2025
  6. Junio C HamanoSep 27, 2025

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.