From: Santi Béjar Date: Wed, 05 Mar 2008 22:33:41 GMT Subject: Re: [PATCH] user.default: New config to prevent using the default values for user.* Message-ID: <8aa486160803051433h2a5f0aeenaf473784198276f6@mail.gmail.com> In-Reply-To: <7vr6eolv0r.fsf@gitster.siamese.dyndns.org> On Wed, Mar 5, 2008 at 10:29 PM, Junio C Hamano wrote: > Santi Béjar writes: > > > +user.default:: > > + If false the defaults values for user.email and user.name are not > > + used. Useful when you want a different email/name for each > > + repository, normally set in the global config file. > > + > > Aren't there other configuration variables that you might want > to tweak per repository? > > 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. Santi