From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: [msysGit] Re: Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe) Date: Sun, 23 Mar 2008 14:05:59 +0100 (CET) Message-ID: References: <7vzlsqfe2h.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Junio C Hamano , tormod.hystad@gmail.com, msysGit , git@vger.kernel.org To: Steffen Prohaska X-From: git-owner@vger.kernel.org Sun Mar 23 14:07:05 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 1JdPug-0006zs-CF for gcvg-git-2@gmane.org; Sun, 23 Mar 2008 14:07:02 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760497AbYCWNGQ (ORCPT ); Sun, 23 Mar 2008 09:06:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756411AbYCWNGQ (ORCPT ); Sun, 23 Mar 2008 09:06:16 -0400 Received: from mail.gmx.net ([213.165.64.20]:33677 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1760471AbYCWNGP (ORCPT ); Sun, 23 Mar 2008 09:06:15 -0400 Received: (qmail invoked by alias); 23 Mar 2008 13:06:10 -0000 Received: from host86-148-26-43.range86-148.btcentralplus.com (EHLO racer.home) [86.148.26.43] by mail.gmx.net (mp005) with SMTP; 23 Mar 2008 14:06:10 +0100 X-Authenticated: #1490710 X-Provags-ID: V01U2FsdGVkX1+Tv/YTCUKTg3GOn318xp+/ARWIv+ajxNpGGLDele ul1Kc8QbHmrEBU X-X-Sender: gene099@racer.site In-Reply-To: User-Agent: Alpine 1.00 (LSU 882 2007-12-20) X-Y-GMX-Trusted: 0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi, On Sun, 23 Mar 2008, Steffen Prohaska wrote: > On Sun, 23 Mar 2008, Johannes Schindelin wrote: > > > On Sun, 23 Mar 2008, Steffen Prohaska wrote: > > > > > On Sun, 23 Mar 2008, Johannes Schindelin wrote: > > > > > > Setting autocrlf for every repository limits the user's options to > > > override the default. > > > > Then maybe a way for the user to override the global templates is what we > > need? I can see that this would be useful outside of the crlf issue. > > I do not think we need this. autocrlf is a configurable variable and we > already have a mechanism for the user to override configuration > variables. The user can use "git config --global ..." to sets his > preferences. This mechanism is well established. I do not see a reason > not to use it. The point is: if we use /etc/gitconfig, we also touch _existing_ setups (as Junio pointed out). Which, in the case of autocrlf, is not desirable. And if we go the route via templates, $HOME/.gitconfig will do no good, as the configuration in the repository trumps the --global configuration. Ciao, Dscho