From: Junio C Hamano Date: Wed, 05 Mar 2008 22:53:02 GMT Subject: Re: [PATCH] user.default: New config to prevent using the default values for user.* Message-ID: <7vwsogkckx.fsf@gitster.siamese.dyndns.org> In-Reply-To: <8aa486160803051433h2a5f0aeenaf473784198276f6@mail.gmail.com> "Santi Béjar" writes: > On Wed, Mar 5, 2008 at 10:29 PM, Junio C Hamano wrote: > >> Perhaps you can make git-init run a post-init hook script by >> default, and have ~/.gitconfig specify the location of it, and >> have it do whatever custom settings to the per-repository >> configuration file? > > I would still need something to prevent doing a commit without a > locally specified name/email. Yes, but that something could simply be "echo '[user] name' >.git/config" in that hook, for example.