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

Re: [RFC PATCH 1/2] rebase, am: add --reviewby option

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
May 7, 2025, 10:17 UTC
Message-ID
<48b86c85-bc39-40ba-a2b3-67de707dd798@crinan.ddns.net>
In-Reply-To
<196a97f45e6.ee3375ac536926.7531113088063277926@linux.beauty>
Hi Li
On 07/05/2025 07:46, Li Chen wrote:
Show 14 quoted lines
> 
> Some projects require every commit to carry a Reviewed-by: line
> for accountability, much like the kernel requires Signed-off-by:.
> A first‑class option keeps that workflow “out of the box”; otherwise
> people need to define an alias such as
> 
> [alias]
>      rbr = rebase --trailer "Reviewed-by: $GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL>"
> 
> which is functional but less convenient.
> 
> I would appreciate your further thoughts on whether a dedicated
> flag(--reviewby) is acceptable, or whether we should drop it and rely solely on
> the generic --trailer interface.

I think adding support for --trailer is a good idea and if we do that we don't need --reviewby. The existence and implementation of --signoff is largely a historical artifact - I'm not sure we'd make the same choices if we were thinking about adding it today. Different projects have different requirements and I don't think it is sensible to add a new option catering to the different demands of each project.

I'll take a proper look at the second patch tomorrow.
Best Wishes
Phillip
Show 5 quoted lines
> Thanks again for the review.
> 
> Regards,
> Li
> 
Previous: Li ChenNext: Phillip Wood
Message 5 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.