Re: [msysGit] Re: Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 23, 2008, 13:05 UTC
- Message-ID
- <alpine.LSU.1.00.0803231404390.4353@racer.site>
- In-Reply-To
- <alpine.OSX.1.00.0803231326290.11994@cougar>
Hi,
On Sun, 23 Mar 2008, Steffen Prohaska wrote:
Show 17 quoted lines
> 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