grep -I: do not bother to read known-binary files
commit09572e919d59f3f9c4428c0a3f1e2608479cc70a
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 6 Dec 2011 00:17:16 +0000 (6 00:17 +0000)
treede5fc8cd55f29f21b178d854e5e2f59ad4f24952
parent67cd09d307f4d1efdd1d4b9098954f2175503c87
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