grep -I: do not bother to read known-binary files
commit9e8201c1dc369befb315b3a0dd1b1e491c73fd73
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 5 Jun 2012 18:44:17 +0000 (5 13:44 -0500)
treefc2b4f4abf7a6e157231e5289023083ce289c4c4
parent197ed24c1e9261ce52cccfe8ded8163130f2886b
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