Re: [msysGit] Re: Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe)
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Mar 24, 2008, 00:23 UTC
- Message-ID
- <20080324002302.GD25381@dpotapov.dyndns.org>
- In-Reply-To
- <alpine.LSU.1.00.0803240101220.4353@racer.site>
On Mon, Mar 24, 2008 at 01:01:54AM +0100, Johannes Schindelin wrote:
Show 10 quoted lines
> > On Mon, 24 Mar 2008, Dmitry Potapov wrote: > > > We already have templates for different hooks, info/exclude, etc. So, > > instead of placing autocrlf in /etc/gitconfig, you should place this > > variable to /usr/share/git/templates/config and this file should be > > copied by git init or git clone as any other file in templates. > > I thought we discussed that already? And the consensus was that this does > not allow for per-user overriding.
I am sorry I missed this discussion. In this case, I believe that the idea of templates should be extended, so any user may have his/her own templates in $HOME/.gittemplates. IMHO, it makes much more sense than making an exception for autocrlf in builtin-init-db.c and breaking existing repositories...
Dmitry