Re: [PATCH] commit: add --committer option
- From
ZheNing Hu <adlternative@gmail.com>
- Date
- Nov 12, 2025, 16:48 UTC
- Message-ID
- <CAOLTT8QH_+4R4cqQf91giPxOE9H67bWZfcjA7sTeMbn5p1PnSg@mail.gmail.com>
- In-Reply-To
- <xmqqwm3wut8i.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> 于2025年11月12日周三 05:58写道:
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 >
You still need:
git -c user.name ='Foo Bar' -c user.email=foo@example.com commit --amend --author
It's hard to remember and not symmetric enough.
> Makes me wonder if we want user.ident that covers them both ;-)