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

Re: [PATCH] gitignore.txt: suggestions how to get literal # or ! at the beginning

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 6, 2012, 11:43 UTC
Message-ID
<CACsJy8DObOJUSdDPEsTwAKjXMYiOyf7P_6oEE9xbU6QFz7rOxQ@mail.gmail.com>
In-Reply-To
<01ADED0717024E6F93B7FBADB1AEAE6B@PhilipOakley>
On Sat, Oct 6, 2012 at 6:33 PM, Philip Oakley <philipoakley@iee.org> wrote:
Show 8 quoted lines
>> Asciidoc 8.2.6 does not like me writing
>> "Put \# if you need a literal #.." so I go with "backslash" and
>> "hash" instead. `\!` displays fine both in man page and html format.
>> '!' changed to `!` because it looks clearer in monospace.
>
>
> Why not put the backslash-hash in back quotes as well to give the same
> look/feel consistency?

Because asciidoc does not like \#, '\#' nor `\#`. It just shows \ without # and I don't want to master asciidoc just to make it show \#.

-- 
Duy
Previous: Philip OakleyNext: Jeff King
Message 3 of 8 in “gitignore.txt: suggestions how to get literal # or ! at the beginning”
  1. gitignore.txt: suggestions how to get literal # or ! at the beginningNguyễn Thái Ngọc Duy, Oct 6, 2012
  2. Philip OakleyOct 6, 2012
  3. Nguyen Thai Ngoc DuyOct 6, 2012
  4. Jeff KingOct 6, 2012
  5. gitignore.txt: suggestions how to get literal # or ! at the beginningNguyễn Thái Ngọc Duy, Oct 6, 2012
  6. Jeff KingOct 6, 2012
  7. Junio C HamanoOct 6, 2012
  8. gitignore.txt: suggestions how to get literal # or ! at the beginningNguyễn Thái Ngọc Duy, Oct 7, 2012

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.