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

Re: [PATCH 1/1] commit: add support to provide --coauthor

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Oct 10, 2019, 23:07 UTC
Message-ID
<20191010230716.rylvyiyqu4gv4zcc@camp.crustytoothpaste.net>
In-Reply-To
<87sgo1q92k.fsf@iotcl.com>
On 2019-10-10 at 08:49:23, Toon Claes wrote:
Show 11 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > Yeah, I'd agree that we should start first with a generic trailer line.
> 
> IIUC you are suggesting something like this?
> 
>  git commit --trailer="Co-authored-by: <coauthor>"
> 
> I really want to consider this, but I do not understand how that improves
> the user experience compared to adding that trailer manually when typing the
> commit message in your $EDITOR?

The --trailer option to git interpret-trailers knows how to interpret configuration options and expand them. For example, you could abbreviate "Co-authored-by" as "cab", and if you used that alias, you could write "git commit --trailer='cab=peff'" and then have your command look up "peff" and find the proper identification either from your repo or from your Git hosting solution of choice (or wherever).

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Junio C HamanoNext: Johannes Schindelin
Message 13 of 15 in “commit: add support to provide --coauthor”
  1. 1/1 commit: add support to provide --coauthorToon Claes, Oct 8, 2019
  2. Denton LiuOct 8, 2019
  3. Phillip WoodOct 8, 2019
  4. Phillip WoodOct 8, 2019
  5. SZEDER GáborOct 9, 2019
  6. Junio C HamanoOct 9, 2019
  7. brian m. carlsonOct 9, 2019
  8. Junio C HamanoOct 9, 2019
  9. Jeff KingOct 9, 2019
  10. Toon ClaesOct 10, 2019
  11. Jeff KingOct 10, 2019
  12. Junio C HamanoOct 11, 2019
  13. brian m. carlsonOct 10, 2019
  14. Johannes SchindelinOct 10, 2019
  15. Denton LiuOct 10, 2019

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.