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

Re: Fix issue with formatting multiple trailer keys

From
Jeff King <peff@peff.net>
Date
Sep 9, 2024, 23:03 UTC
Message-ID
<20240909230331.GA921644@coredump.intra.peff.net>
In-Reply-To
<5A3FD50B-46F1-4000-8AAD-895A4CB4F33F@alchemists.io>
On Fri, Sep 06, 2024 at 05:09:08PM -0600, Brooke Kuhlmann wrote:
> Use of a custom separator is a nifty trick. Thanks. A little
> unintuitive but works. Definitely would be neat if you patch this to
> work without the custom separator, though.

The separator will always be required (even if you use multiple %(trailer) blocks), because it overrides the default of terminating with a newline. And we can't switch that default without breaking compatibility for existing users.

So I think after my series you'll have:
  %(trailers:key=Files,separator=) %(trailers:key=Duration,separator=)
or similar.
-Peff
Previous: Brooke KuhlmannNext: Brooke Kuhlmann
Message 4 of 5 in “Fix issue with formatting multiple trailer keys”
  1. Brooke KuhlmannSep 6, 2024
  2. Jeff KingSep 6, 2024
  3. Brooke KuhlmannSep 6, 2024
  4. Jeff KingSep 9, 2024
  5. Brooke KuhlmannSep 10, 2024

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.