Re: mingw, windows, crlf/lf, and git
- From
Nicolas Pitre <nico@cam.org>
- Date
- Feb 13, 2007, 17:25 UTC
- Message-ID
- <Pine.LNX.4.64.0702131219220.1757@xanadu.home>
- In-Reply-To
- <Pine.LNX.4.64.0702130845330.8424@woody.linux-foundation.org>
On Tue, 13 Feb 2007, Linus Torvalds wrote:
Show 5 quoted lines
> 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