Re: edit Author/Date metadata as part of 'git commit' $EDITOR invocation?
- From
David Aguilar <davvid@gmail.com>
- Date
- Jan 5, 2010, 20:22 UTC
- Message-ID
- <20100105202159.GA2657@gmail.com>
- In-Reply-To
- <fabb9a1e1001041452q299f1f28hff041eb06fd24b1f@mail.gmail.com>
On Mon, Jan 04, 2010 at 05:52:42PM -0500, Sverre Rabbelier wrote:
Show 14 quoted lines
> Heya, > > On Mon, Jan 4, 2010 at 16:08, Adam Megacz <adam@megacz.com> wrote: > > Perhaps a preference (off by default) demanding that they be set > > explicitly when "git commit -m" is used? > > Heh, what use would that be? On a different/new box you would have > neither that setting nor the email set, so that doens't solve the > problem methinks :P. > > -- > Cheers, > > Sverre Rabbelier
Workaround:
If you use "git commit -s" it includes a Signed-off-by line which includes your name and email.
Seeing "Signed-off-by: root <root@localhost>" would give you a hint that you should abort the commit, set the vars, and try again.
-- David