Re: Re: [RFC PATCH] hooks: add some defaults to support sane workflow to pre-commit
- From
Heiko Voigt <hvoigt@hvoigt.net>
- Date
- Oct 20, 2009, 19:59 UTC
- Message-ID
- <20091020195922.GA1725@book.hvoigt.net>
- In-Reply-To
- <7v4opv4vjh.fsf@alter.siamese.dyndns.org>
On Mon, Oct 19, 2009 at 01:50:26AM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> Heiko Voigt <git-list@hvoigt.net> writes: > > > It sometimes happens that you move to a new machine and forget to setup your > > name and email address. To find this out after 10 commits can be quite > > frustrating. > > Doesn't env_hint[] kick in in fmt_ident() in such a case, though?
It is not want you usually want. You get <username>@<hostname> as the committer but if you are working on a workstation this is seldomly your email address. At least in my experience.
I would like this as a safeguard that you have done some basic setup before you create any commits.
cheers Heiko