git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 17:26 UTC

Re: [PATCH v7 1/5] interpret-trailers: factor trailer rewriting

From
Li Chen <me@linux.beauty>
Date
Mar 2, 2026, 15:00 UTC
Message-ID
<19caf109a99.6c639fbf1370819.2681969272338930783@linux.beauty>
In-Reply-To
<56b1b6b6-94c2-4a2f-b473-9b4d09d6f52e@gmail.com>
Hi Phillip,
 ---- On Mon, 02 Mar 2026 22:56:04 +0800  Phillip Wood <phillip.wood123@gmail.com> wrote --- 
 > Hi Li
 > 
 > On 24/02/2026 07:05, Li Chen wrote:
 > > Extract the trailer rewriting logic into a helper that appends to an
 > > output strbuf.
 > > 
 > > Update interpret_trailers() to handle file I/O only: read input once,
 > > call the helper, and write the buffered result.
 > > 
 > > This separation makes it easier to move the helper into trailer.c in the
 > > next commit.
 > 
 > This is still missing my sign off c.f. 
 > https://lore.kernel.org/f5152523-f7ff-4dee-a685-fb0b74cd6a56@gmail.com
 > 
 > > Signed-off-by: Li Chen <me@linux.beauty>
 > > ---
 > > v7:
 > > Use strbuf_write() when emitting buffered output.
 > 
 > Also renamed "sb" to "input"
 > 
 > Apart from the missing sign off this all looks good.
 
I sincerely apologize for that! I did check it during development, but somehow lost
track in the end. I will definitely include your sign-off in the next version!

Regards, Li

Previous: Phillip WoodNext: Phillip Wood
Message 14 of 32 in “rebase: support --trailer”
  1. 0/5 rebase: support --trailerLi Chen, Feb 24, 2026
  2. 1/5 interpret-trailers: factor trailer rewritingLi Chen, Feb 24, 2026
  3. 2/5 trailer: move process_trailers to trailer.hLi Chen, Feb 24, 2026
  4. 3/5 trailer: append trailers without fork/execLi Chen, Feb 24, 2026
  5. 4/5 commit, tag: parse --trailer with OPT_STRVECLi Chen, Feb 24, 2026
  6. 5/5 rebase: support --trailerLi Chen, Feb 24, 2026
  7. Junio C HamanoFeb 26, 2026
  8. Phillip WoodFeb 26, 2026
  9. Kristoffer HaugsbakkFeb 26, 2026
  10. Phillip WoodMar 2, 2026
  11. phillip.wood123@gmail.comMar 2, 2026
  12. Phillip WoodMar 2, 2026
  13. Phillip WoodMar 2, 2026
  14. Li ChenMar 2, 2026
  15. Phillip WoodMar 3, 2026
  16. Kristoffer HaugsbakkMar 3, 2026
  17. Junio C HamanoMar 3, 2026
  18. Phillip WoodMar 4, 2026
  19. Phillip WoodMar 4, 2026
  20. Junio C HamanoMar 4, 2026
  21. Li ChenMar 5, 2026
  22. 0/6 rebase: support --trailerPhillip Wood, Mar 6, 2026
  23. 1/6 interpret-trailers: factor trailer rewritingPhillip Wood, Mar 6, 2026
  24. 2/6 interpret-trailers: refactor create_in_place_tempfile()Phillip Wood, Mar 6, 2026
  25. 3/6 trailer: libify a couple of functionsPhillip Wood, Mar 6, 2026
  26. 4/6 trailer: append trailers without fork/execPhillip Wood, Mar 6, 2026
  27. 5/6 commit, tag: parse --trailer with OPT_STRVECPhillip Wood, Mar 6, 2026
  28. 6/6 rebase: support --trailerPhillip Wood, Mar 6, 2026
  29. Phillip WoodMar 6, 2026
  30. Junio C HamanoMar 6, 2026
  31. Junio C HamanoMar 6, 2026
  32. Phillip WoodMar 9, 2026

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.