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

Re: Comment trailers vs. bracketed lines

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
May 7, 2025, 16:41 UTC
Message-ID
<29ff888d-9749-4fbe-9722-95dd71008a2a@app.fastmail.com>
In-Reply-To
<ae56dc14-bbae-4d5e-a890-20735131d484@app.fastmail.com>
Hi, this is an old thread:
On Sun, Oct 20, 2024, at 19:08, Kristoffer Haugsbakk wrote:
Show 44 quoted lines
> On Sat, Oct 19, 2024, at 23:21, Jeff King wrote:
>>> On Fri, Oct 18, 2024, at 07:29, Jeff King wrote:
>>> […]
>>
>> I assigned authorship to Ramsay, so my name is not otherwise mentioned,
>> but appears in the signoff. So it was a way of mentioning what I
>> contributed (both for credit, but also in case anybody has questions
>> later).
>>
>> I guess "Commit-message-by:" would work, too. ;)
>
> I’ve done that when someone has given me a non-descript diff. :)
>
>> I think in the usual trailer order, it would be:
>>
>>   Signed-off-by: Ramsay
>>   [jk: add commit message]
>>   Signed-off-by: me
>>
>> but I didn't want to forge his S-o-b without asking first.
>
> I’ve seen those brackets in the log.  They used to happen with some
> regularity.  At first it made sense since you need a free-form area to
> both comment and tell everyone that you left the comment.  And a trailer
> doesn’t make sense for that, I thought.[1]
>
> But thinking about the signoff requirement: you already have all the
> information you need from the next trailer, namely the signoff.  In
> other words this:
>
>     [kh: Added tests]
>     Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
>
> Has the same information as this:
>
>     Comment: Added tests
>     Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
>
> Because the signoff order tells you who left the comment.  So I was
> wondering to myself why this uniform approach wasn’t used.
>
> † 1: Since the brackets become “non-trailer values” or something
>    (git-interpret-trailers(1)), i.e. the discarded parts of the trailer
>    block
I was just reminded of this: https://lore.kernel.org/git/xmqqikmce67y.fsf@gitster.g/T/#m68c22c9b7dbc9b295e923a913e9d67e3ab28a2a4

I’m just doing a little bump of this topic in case anyone has any thoughts. I hope that is okay.

Previous: Kristoffer HaugsbakkNext: Jeff King
Message 20 of 22 in “builtin/credential-cache--daemon: fix error when "exit"ing on Cygwin”
  1. builtin/credential-cache--daemon: fix error when "exit"ing on CygwinPatrick Steinhardt, Oct 16, 2024
  2. Jeff KingOct 16, 2024
  3. Jeff KingOct 16, 2024
  4. Ramsay JonesOct 16, 2024
  5. Taylor BlauOct 16, 2024
  6. Jeff KingOct 17, 2024
  7. Patrick SteinhardtOct 17, 2024
  8. Ramsay JonesOct 17, 2024
  9. Patrick SteinhardtOct 18, 2024
  10. Taylor BlauOct 17, 2024
  11. Ramsay JonesOct 16, 2024
  12. builtin/credential-cache--daemon: fix error when "exit"ing on CygwinPatrick Steinhardt, Oct 18, 2024
  13. credential-cache: treat ECONNABORTED like ECONNRESETJeff King, Oct 18, 2024
  14. Patrick SteinhardtOct 18, 2024
  15. Ramsay JonesOct 18, 2024
  16. Taylor BlauOct 18, 2024
  17. Kristoffer HaugsbakkOct 18, 2024
  18. Jeff KingOct 19, 2024
  19. Comment trailers vs. bracketed linesKristoffer Haugsbakk, Oct 20, 2024
  20. Kristoffer HaugsbakkMay 7, 2025
  21. Jeff KingMay 8, 2025
  22. Junio C HamanoMay 7, 2025

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.