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

Re: [PATCH] git-filter-branch.txt: use {caret} for ^

From
Jeff King <peff@peff.net>
Date
Feb 3, 2020, 11:45 UTC
Message-ID
<20200203114549.GA4157558@coredump.intra.peff.net>
In-Reply-To
<20200202193319.1966-1-martin.agren@gmail.com>
On Sun, Feb 02, 2020 at 08:33:19PM +0100, Martin Ågren wrote:
Show 5 quoted lines
> In this paragraph, we have a few instances of the '^' character, which
> we give as "\^". This renders well with AsciiDoc ("^"), but Asciidoctor
> renders it literally as "\^". Dropping the backslashes renders fine
> with Asciidoctor, but not AsciiDoc... Let's use "{caret}" instead, to
> avoid these escaping problems.
Makes sense.

The source is pretty ugly to read both before and after, though. I wonder if using a literal like `5*10^5` would be even nicer. That makes the source pretty readable, and the output would put it in <tt> or similar. Which maybe is a little funny, but kind of makes sense to me typographically as a kind of "this is math" style.

-Peff
Previous: Martin ÅgrenNext: Martin Ågren
Message 2 of 5 in “git-filter-branch.txt: use {caret} for ^”
  1. git-filter-branch.txt: use {caret} for ^Martin Ågren, Feb 2, 2020
  2. Jeff KingFeb 3, 2020
  3. Martin ÅgrenFeb 3, 2020
  4. Elijah NewrenFeb 3, 2020
  5. Jeff KingFeb 3, 2020

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.