grep -I: do not bother to read known-binary files
commit3e870a0da457f26cfe69b692ba4f9113be764499
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 2 Nov 2011 20:12:22 +0000 (2 15:12 -0500)
treef0ff2df361aa1292d5af1ab76bc4d0b9c868ee52
parentcfe6430df89d176c6050ed73d3de16a8598337d4
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