Re: CRLF problems with Git on Win32
From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:44:03
On Wed, Jan 09, 2008 at 02:03:32PM +0000, Johannes Schindelin wrote:
On Wed, 9 Jan 2008, Gregory Jefferis wrote:quoted
crlf=safe [i.e. munging CRLFs only if there are no bare LFs] sounds appealing to me as well because it looks like munging that is always reversible.There is a bigger problem here, though: As of now, you can add a (loose) object from a big file pretty easily even on a small machine, because you do not need the whole buffer, but you stream it to hash-object. IIRC Junio wrote a patch to allow this with "git-add", using fast-import, but that patch probably hasn't been applied.
I don't think that crlf=safe requires that the whole file was put into the buffer. It can work with stream, but it will call die() if a file that was detected as text has a naked LF. Dmitry