Re: [msysGit] Re: Store autocrlf during init-db (was [msysGit] autocrlf problems with Git-preview20080301.exe)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, 24 Mar 2008, Dmitry Potapov wrote:

> On Mon, Mar 24, 2008 at 01:01:54AM +0100, Johannes Schindelin wrote:
> > 
> > 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...

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 the best idea would be an "init" hook, settable from the config, 
after all.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux