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, 13:38 UTC
Message-ID
<67417874-d22a-40bf-b35e-4aaaefe6d2b5@gmail.com>
In-Reply-To
<fdf7a827-d8ca-4edc-8427-a2c6eb470e1a@app.fastmail.com>
On 07/05/2025 11:39, Kristoffer Haugsbakk wrote:
Show 8 quoted lines
> On Wed, May 7, 2025, at 12:26, Phillip Wood wrote:
> 
>> It might be worth thinking about how we could extend the trailer option
>> so that it uses the committer identity if there is no value specified
>> which would reduce the pain of adding things like Reviewed-by:
> 
> That could be confusing for people who use trailers for
> non-ident metadata.

Yes we need to think about how to do it in a way that is helpful for things like Reviewed-by: or Tested-by: but does not break other workflows. One possibility would be to have a trailer.<name>.defaultValue config key but I'd be interested in other people's ideas.

One other idea is that "git commit --author Kristoffer" will search recent commits for matching author to obtain your full name and email address. Something like that could be useful for expanding values --tailer=Co-Authored-by" or perhaps we could teach the completion script to suggest suitable completions based on some config describing the values we expect for certain keys.

> I was wondering if `git var GIT_COMMITTER_IDENT` could be used.  But
> that prints a Unix timestamp with timezone as well. (I don’t really
> understand why after reading that part of the manual)
> 

I think it is because with define GIT_*_IDENT to include the timestamp to match the ident lines in commit and tag objects. You can always trim the timestamp appending something like "| sed 's/[^>]*$//'".

Best Wishes
Phillip
Previous: Kristoffer HaugsbakkNext: Junio C Hamano
Message 8 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.