grep -I: do not bother to read known-binary files
commit8e7ccdb919ef1133ab4da9a10d82e75ea82b1a4e
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, 28 Dec 2010 17:56:11 +0000 (28 18:56 +0100)
tree3c30b0ace2706f427bf8e46af53716649c768d2a
parentb354289fb6b6fae0139f660154afc4fd5b0c5cd5
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