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

Re: Trailers Containing Underscore or Dot Characters

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 18, 2024, 01:07 UTC
Message-ID
<xmqqy11hjqnk.fsf@gitster.g>
In-Reply-To
<Zzb7aI2C2uh_nwuc@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 17 quoted lines
> The second thing we should be fixing is that git-interpret-trailers(1)
> allows us to add invalid trailers:
>
>     $ touch file
>     $ git interpret-trailers --in-place file --trailer 'Valid-trailer: bar'
>     $ git interpret-trailers --parse file
>     Valid-trailer: bar
>     $ git interpret-trailers --in-place file --trailer 'Invalid_trailer: bar'
>     $ git interpret-trailers --parse file
>     $ cat file
>
>     Valid-trailer: bar
>     Invalid_trailer: bar:
>
> After the second invocation of git-interpret-trailers(1) it is unable to
> find any trailers anymore due to the bogus format of the second trailer
> line.

A good point. Thanks.

Previous: Patrick SteinhardtNext: kristofferhaugsbakk@fastmail.com
Message 5 of 8 in “Trailers Containing Underscore or Dot Characters”
  1. ふじをNov 13, 2024
  2. Christian CouderNov 13, 2024
  3. Junio C HamanoNov 13, 2024
  4. Patrick SteinhardtNov 15, 2024
  5. Junio C HamanoNov 18, 2024
  6. Documentation/glossary: describe "trailer"kristofferhaugsbakk@fastmail.com, Nov 17, 2024
  7. Junio C HamanoNov 18, 2024
  8. Christian CouderNov 18, 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.