grep -I: do not bother to read known-binary files
commit4e41bf306e369e6c3ccf061305abf977225106f7
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, 1 Feb 2011 22:23:26 +0000 (1 16:23 -0600)
tree44bbf5f2b70dbd0576ea4d6b34236dc34c99b237
parent3c1ac8c41beba83fa5fd6cd9a21ac0d04772252b
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