grep -I: do not bother to read known-binary files
commit0b23a07e0e4a406ee805258b1d622321facd3db0
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 24 Apr 2011 23:42:39 +0000 (25 00:42 +0100)
treea9b36907f83df7c246471b7fd9a52f19dbfe3f45
parentd73c3c04cf4e9ded10dfd954ab151e733defe196
grep -I: do not bother to read known-binary files

Incidentally, this makes grep -I respect the "binary" attribute (actually,
the "-text" attribute, but "binary" implies that).

Since the attributes are not thread-safe, we now need to switch off
threading if -I was passed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
builtin/grep.c