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

Re: Rendering back-ticks in plaintext docs (was Re: [PATCH] git-rebase.txt: use back-ticks consistently)

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 28, 2022, 16:59 UTC
Message-ID
<xmqqfsjolo5f.fsf@gitster.g>
In-Reply-To
<a01c1ff7-74a7-b32f-1a1e-a8f2e840ae31@github.com>
Derrick Stolee <derrickstolee@github.com> writes:
Show 14 quoted lines
>> I see Phillip spotted some of this already, but the "exec" change here
>> looks unwanted, i.e. let's use double quotes there.
>
> This is definitely an issue where I was looking at the HTML formatted
> output, which respects back-ticks. Thanks for pointing out that the
> text docs just ignore back-ticks. This seems problematic, in my opinion.
>
> Is it possible to update our doc formatting to convert back-ticks into
> something like single quotes? That would help these plain-text documents
> point out these places where exact strings are very important.
>
> I also have no idea where to look to make such a change, and it would be
> very wide-ranging. I just think that the plaintext docs are currently a
> lossy medium and we should work to improve that.

Looking at "man -l git-rebase.1" output, not the "doc-diff" output that renders to pure plain text by deliberately losing font information in the roff output, I think this change is OK. IOW, "git help -m rebase" shows these marked-up parts in bold on the terminal (and on the paper, but who prints manual pages theres days?), which is what we want.

If there is something we found in this episode that we might want to improve, it is doc-diff, I would think.

Thanks.
Previous: Derrick StoleeNext: Junio C Hamano
Message 6 of 19 in “git-rebase.txt: use back-ticks consistently”
  1. git-rebase.txt: use back-ticks consistentlyDerrick Stolee via GitGitGadget, Jun 27, 2022
  2. Phillip WoodJun 28, 2022
  3. Derrick StoleeJun 28, 2022
  4. Ævar Arnfjörð BjarmasonJun 28, 2022
  5. Rendering back-ticks in plaintext docs (was Re: [PATCH] git-rebase.txt: use back-ticks consistently)Derrick Stolee, Jun 28, 2022
  6. Junio C HamanoJun 28, 2022
  7. Junio C HamanoJun 28, 2022
  8. Derrick StoleeJun 28, 2022
  9. git-rebase.txt: use back-ticks consistentlyDerrick Stolee via GitGitGadget, Jun 28, 2022
  10. Junio C HamanoJun 28, 2022
  11. Phillip WoodJun 29, 2022
  12. Derrick StoleeJun 29, 2022
  13. Junio C HamanoJun 30, 2022
  14. Derrick StoleeJun 29, 2022
  15. Phillip WoodJun 29, 2022
  16. Derrick StoleeJun 29, 2022
  17. git-rebase.txt: use back-ticks consistentlyDerrick Stolee via GitGitGadget, Jun 29, 2022
  18. Phillip WoodJun 29, 2022
  19. Junio C HamanoJun 30, 2022

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.