Re: [PATCH] user.default: New config to prevent using the default values for user.*
- From
- Santi Béjar <sbejar@gmail.com>
- Date
- Mar 5, 2008, 23:23 UTC
- Message-ID
- <8aa486160803051523t51a8294fwc55d9e41e61cc733@mail.gmail.com>
- In-Reply-To
- <7vwsogkckx.fsf@gitster.siamese.dyndns.org>
On Wed, Mar 5, 2008 at 11:53 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> "Santi Béjar" <sbejar@gmail.com> writes: > > > On Wed, Mar 5, 2008 at 10:29 PM, Junio C Hamano <gitster@pobox.com> 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.
But I want a different locally specified name in each repository, because I use different emails for different projects (private/work/...).
Santi