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

Re: [RFC PATCH 2/2] rebase: support --trailer

From
Li Chen <me@linux.beauty>
Date
May 16, 2025, 05:42 UTC
Message-ID
<196d79d922d.127d7eb7f870411.3309775784450179401@linux.beauty>
In-Reply-To
<951d3343-fe97-4e7e-bb73-1c569ff10ee6@gmail.com>
Hi Phillip,
 ---- On Thu, 08 May 2025 22:17:17 +0800  Phillip Wood <phillip.wood123@gmail.com> wrote --- 
 > Hi Li
 > 
 > On 06/05/2025 13:58, Li Chen wrote:
 > > From: Li Chen <chenl311@chinatelecom.cn>
 > > 
 > > Implement a new `--trailer <text>` option for `git rebase`
 > > (support merge backend only now), which appends arbitrary
 > > trailer lines to each rebased commit message. Reject early
 > > if used with the apply backend (git am) since it lacks
 > > message‑filter/trailer hook. Automatically set REBASE_FORCE when
 > > any trailer is supplied.
 > 
 > I think this is a reasonable idea but unfortunately I think the trailer 
 > API needs improving so that the implementation
 > 
 > (a) ...
 > 
 > (b) ...
 > 
 > (c) Only adds the trailers on the commandline. I'm a bit confused by the 
 > various trailer config options - the man page reads to me like "git 
 > interpret-trailers" can add missing trailers that are configured but not 
 > passed on the commandline.
About part (c), just to be sure I understand correctly:

Do you want the trailer implementation to completely drop any handling of trailer configuration (i.e. remove parse_trailers_from_config() and related config-based behavior from the codepath and man page/documents)?

Or would you rather leave the config machinery in place, but have rebase --trailer explicitly ignore all trailer.* configuration and only append the exact trailers passed on its command line?

Please let me know which you prefer (or if there’s a third path I’m missing) and I’ll add the patches accordingly.

Regards, Li

Previous: Phillip WoodNext: Phillip Wood
Message 15 of 16 in “rebase: support --trailer and add --reviewby”
  1. 0/2 rebase: support --trailer and add --reviewbyLi Chen, May 6, 2025
  2. 1/2 rebase, am: add --reviewby optionLi Chen, May 6, 2025
  3. Junio C HamanoMay 6, 2025
  4. Li ChenMay 7, 2025
  5. Phillip WoodMay 7, 2025
  6. Phillip WoodMay 7, 2025
  7. Kristoffer HaugsbakkMay 7, 2025
  8. Phillip WoodMay 7, 2025
  9. Junio C HamanoMay 7, 2025
  10. 2/2 rebase: support --trailerLi Chen, May 6, 2025
  11. Phillip WoodMay 8, 2025
  12. Li ChenMay 8, 2025
  13. phillip.wood123@gmail.comMay 8, 2025
  14. Phillip WoodMay 8, 2025
  15. Li ChenMay 16, 2025
  16. Phillip WoodMay 16, 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.