From: Heiko Voigt Date: Tue, 20 Oct 2009 19:59:22 GMT Subject: Re: Re: [RFC PATCH] hooks: add some defaults to support sane workflow to pre-commit 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: > Heiko Voigt 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 @ 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