Re: [PATCH] user.default: New config to prevent using the default values for user.*
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 5, 2008, 23:29 UTC
- Message-ID
- <7v7iggkavd.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <8aa486160803051523t51a8294fwc55d9e41e61cc733@mail.gmail.com>
"Santi Béjar" <sbejar@gmail.com> writes:
Show 9 quoted lines
>> > 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/...).
You changed your mind then? You said you wanted to have something that prevents a commit from being made immediately after git-init before per-repo user.name is properly configured. Doesn't that echo achieve that goal?