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 13, 2024, 22:31 UTC
Message-ID
<xmqqa5e2ahqf.fsf@gitster.g>
In-Reply-To
<CAP8UFD0_+=5xmw6y5qiO22KMZhExLyZ=5HRjYphLD66vt0LLNg@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
Show 13 quoted lines
>> Date:   Wed Nov 13 08:28:19 2024 +0300
>>     Test
>>     test_hoge: fuga:
>>     test.hoge: fuga:
>>     test-hoge: fuga
>> ```
>>
>> What's different between what you expected and what actually happened?
>>
>> The one for `--trailer "test-hoge: fuga"` is finished with nothing.
>> But The others for ones which have "_" or "." are finished with ":".
>
> Yeah, that's because '-' is allowed in trailer keys while '_' and '.' are not.
Thanks for responding.

I did not offhand recall seeing anywhere in our documentation set that defines what a valid trailer key looks like, so I went and read the interpret-trailers manual page and did not find any. For example, is this a valid trailer line, even if we know '-' is "allowed in trailer keys"?

	-test: fuga

Is this a valid trailer line, when your configuration adds '-' to the set of separator characters?

	test- fuga

We do not even have an entry in the glossary for "trailer", and that probably is the first thing we need to fix.

Previous: Christian CouderNext: Patrick Steinhardt
Message 3 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.