Re: mingw, windows, crlf/lf, and git
From: Nicolas Pitre <hidden>
Date: 2016-06-15 22:42:54
On Tue, 13 Feb 2007, Linus Torvalds wrote:
The *ONLY* case where we may not be able to do things automatically is actually a much more subtle one: "git cat-file". If we just get a SHA1, we don't know what the path to look it up was like, and thus we can never know whether it's a binary or a text object. With "-p" we can trivially guess, of course, but "git cat-file blob" simply must not do that!
git-cat-file, and its counter part git-hash-object, are fairly low level plumbing. Anyone using them should be aware of the issue and apply the needed conversion. And actually, since we're going to have the conversion routines in the core, we'd only need to add a --crlf argument to both of them to optionally perform the conversion since the user of those commands is more likely to know if the conversion is needed. Nicolas