grep -I: do not bother to read known-binary files
commite232abe04718c8137016ce025f4ac315c244cf87
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 8 Jan 2011 14:15:36 +0000 (8 15:15 +0100)
tree6a346ee0264a746fdab9b43229587b160e2d1b3c
parent06a850bb26b96cfd71fb727188994b58e6decb04
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