Re: Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe)
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Mar 24, 2008, 12:21 UTC
- Message-ID
- <20080324122153.GF25381@dpotapov.dyndns.org>
- In-Reply-To
- <alpine.LSU.1.00.0803241155300.4353@racer.site>
On Mon, Mar 24, 2008 at 11:57:19AM +0100, Johannes Schindelin wrote:
Show 5 quoted lines
> > I think I actually suggested something like that. But that gets only even > more complicated: if you have a template for .git/config in > $HOME/.gittemplates/, then the global template will be _disregarded_, even > if the administrator puts something vital in there.
Maybe, because I cannot imagine what so vital the administrator can put in it, I really do not see that as a problem. I believe that any good administrator should notify all users about any vital changes anyway, because if these changes are vital, it may be necessary not only change templates in $HOME/.gittemplates/ (which very few users will probably have), but perhaps also in existing repositories...
> > Maybe the best idea would be an "init" hook, settable from the config, > after all.
I agree that seems to be the best solution as it is more flexible than having $HOME/.gittemplates/.
Dmitry