Re: [PATCH 3/3] Teach "git branch" about --new-workdir

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Tuesday, July 24, 2007 - 11:30 am

Hi,

On Tue, 24 Jul 2007, Marius Storm-Olsen wrote:


I do not think so.

core.autocrlf is only about the relationship between the working tree and 
the repository.

So if you want CR/LF line endings always, just do not set that flag 
(which defaults to false).

If you want LF line endings in the repo, but not necessarily in the 
working tree, set core.autocrlf to input.

If you want LF line endings sometimes, but CR/LF at other times, but do 
not care if the revisions in the repository will have LF or CR/LF, do not 
set that flag.

Git is really slowed down tremendously just by the fact that it runs on 
Windows.  You should not add to that.

IMHO in most cases -- even on Windows -- you do not want to set autocrlf 
at all.  Because you do not need to store the file different from the 
version you have in the working tree.

The only situation where I think it makes sense, is when you have both 
Windows and Unix developers, _and_ your Windows tools sometimes produce 
CR/LF stupidly.  But then I'd set it to "input".

BTW no need to fuzz about binary files, which want to be in the object 
database without being converted.  Our heuristics has so far been pretty 
successful in discerning binary from text files.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Sun Jul 22, 11:56 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Sun Jul 22, 12:24 pm)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Sun Jul 22, 2:25 pm)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Sun Jul 22, 2:59 pm)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Sun Jul 22, 4:02 pm)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Mon Jul 23, 3:32 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Mon Jul 23, 3:42 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 1:19 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 2:02 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 4:07 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 4:14 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 5:28 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 5:37 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 5:42 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 6:26 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 6:29 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 6:33 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Josef Weidendorfer, (Tue Jul 24, 6:47 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 6:54 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Josef Weidendorfer, (Tue Jul 24, 7:21 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 11:02 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Tue Jul 24, 11:30 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 12:36 pm)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Tue Jul 24, 11:47 pm)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Wed Jul 25, 2:39 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Marius Storm-Olsen, (Wed Jul 25, 5:10 am)
Re: [PATCH 3/3] Teach "git branch" about --new-workdir, Johannes Schindelin, (Wed Jul 25, 7:09 am)