grep -I: do not bother to read known-binary files
commit16a444f6ee0cdd83bd2d54ac4445e3e1330fb42a
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 30 Mar 2012 18:42:37 +0000 (30 13:42 -0500)
treee636ed32937e3eda8801824d8268a028829e8d95
parent5b14da50a148d180b8ddb7519ccd4450f4e13a0b
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