Re: mingw, windows, crlf/lf, and git
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 14, 2007, 11:10 UTC
- Message-ID
- <Pine.LNX.4.63.0702141208020.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.64.0702132127330.3604@woody.linux-foundation.org>
Hi,
On Tue, 13 Feb 2007, Linus Torvalds wrote:
Show 5 quoted lines
> 0x00 - which is the only one mmfile_is_binart() uses - is arguably the > "most binary" one, of course, but it might be interesting to give > different weights to the whole range.. In particular, especially for > small files, the fact that there is no 0x00 byte in no way indicates > that it's not "binary".
Last time I checked, the text files never had lines longer than 200 characters (I chose this intentionally large). So, it might be a good heuristic to check the maximal line length, and refuse to believe that it's text once a certain (configurable) threshold is reached.
Ciao, Dscho