From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] user.default: New config to prevent using the default values for user.* Date: Wed, 05 Mar 2008 15:29:58 -0800 Message-ID: <7v7iggkavd.fsf@gitster.siamese.dyndns.org> References: <1204744684-2043-1-git-send-email-sbejar@gmail.com> <7vr6eolv0r.fsf@gitster.siamese.dyndns.org> <8aa486160803051433h2a5f0aeenaf473784198276f6@mail.gmail.com> <7vwsogkckx.fsf@gitster.siamese.dyndns.org> <8aa486160803051523t51a8294fwc55d9e41e61cc733@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Junio C Hamano" , git@vger.kernel.org To: =?utf-8?Q?Santi_B=C3=A9jar?= X-From: git-owner@vger.kernel.org Thu Mar 06 00:30:59 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JX34V-0003S1-SK for gcvg-git-2@gmane.org; Thu, 06 Mar 2008 00:30:52 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758338AbYCEXaO convert rfc822-to-quoted-printable (ORCPT ); Wed, 5 Mar 2008 18:30:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757288AbYCEXaN (ORCPT ); Wed, 5 Mar 2008 18:30:13 -0500 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:44696 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758338AbYCEXaM convert rfc822-to-8bit (ORCPT ); Wed, 5 Mar 2008 18:30:12 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id B89992B44; Wed, 5 Mar 2008 18:30:10 -0500 (EST) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 142242B40; Wed, 5 Mar 2008 18:30:05 -0500 (EST) In-Reply-To: <8aa486160803051523t51a8294fwc55d9e41e61cc733@mail.gmail.com> (Santi =?utf-8?Q?B=C3=A9jar's?= message of "Thu, 6 Mar 2008 00:23:27 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "Santi B=C3=A9jar" writes: >> > 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 t= hat goal?