I really think this would be better off using the crlf-like heuristics. It's entirely possible that the "NUL character in the first X bytes" heuristic is wrong for some cases, so I find it a bit nasty to hardcoding it as the only rule for "it must be binary" Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html