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

Re: [PATCH v2] userdiff: support Markdown

From
Johannes Sixt <j6t@kdbg.org>
Date
May 1, 2020, 14:26 UTC
Message-ID
<ec6239c6-b619-e11d-9166-d968bf5601db@kdbg.org>
In-Reply-To
<C2FDC85CN8B8.8IVFPUOV0BHA@what>
Am 01.05.20 um 13:49 schrieb Ash Holland:
Show 14 quoted lines
> On Thu Apr 30, 2020 at 11:31 AM BST, Junio C Hamano wrote:
>> Taking all that together, my suspicion is
>>
>> "^ {0,3}#{1,6}[ \t]"
>>
>> i.e. "possibly slightly indented run of 6 hashes, with a whitespace
>> to catch the headers with real contents and nothing else" might be
>> more practically useful. I dunno.
> 
> Sure, that looks plausible. I don't have a strong opinion on whether
> it's more useful to be consistent (and show the last heading, even if it
> doesn't contain any text) or to try as hard as possible to just show
> "some text", even if it's not the last heading, but two people have now
> suggested changing it, so I'll submit a v3 with your suggested pattern.

The pattern above captures only the hashmarks, but not the text of the header. I suggest to append ".*".

-- Hannes
Previous: Ash HollandNext: Ash Holland
Message 13 of 15 in “userdiff: support Markdown”
  1. userdiff: support MarkdownAsh Holland, Apr 21, 2020
  2. Emma BrooksApr 21, 2020
  3. Ash HollandApr 23, 2020
  4. Junio C HamanoApr 28, 2020
  5. Ash HollandApr 29, 2020
  6. Johannes SixtApr 23, 2020
  7. Ash HollandApr 23, 2020
  8. Johannes SixtApr 24, 2020
  9. Ash HollandApr 29, 2020
  10. userdiff: support MarkdownAsh Holland, Apr 29, 2020
  11. Junio C HamanoApr 30, 2020
  12. Ash HollandMay 1, 2020
  13. Johannes SixtMay 1, 2020
  14. userdiff: support MarkdownAsh Holland, May 2, 2020
  15. Johannes SixtMay 2, 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.