Re: [PATCH] commit: add --committer option
- From
Jeff King <peff@peff.net>
- Date
- Nov 11, 2025, 22:23 UTC
- Message-ID
- <20251111222335.GA4054883@coredump.intra.peff.net>
- In-Reply-To
- <xmqqwm3wut8i.fsf@gitster.g>
On Tue, Nov 11, 2025 at 01:58:21PM -0800, Junio C Hamano wrote:
Show 15 quoted lines
> Jeff King <peff@peff.net> writes: > > > I just mean being able to do: > > > > git commit --amend --author='Foo Bar <foo@example.com>' --committer-is-author > > > > instead of: > > > > git commit --amend --author='Foo Bar <foo@example.com>' --committer='Foo Bar <foo@example.com>' > > Ah, I see. Like > > git -c user.name='Foo Bar' -c user.email=foo@example.com commit --amend > > Makes me wonder if we want user.ident that covers them both ;-)
Hmm, I hadn't thought to use "-c" config for this. That makes me question the utility of --committer a little bit. ;) I guess it is slightly more convenient than "-c" in that it will trigger the find_author_by_nickname() magic.
-Peff