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