grep -I: do not bother to read known-binary files
commit31f5ab12539555a2c159e7f39f3ca453ff478593
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, 10 May 2014 21:56:40 +0000 (10 16:56 -0500)
tree0bd9beba0def0477c58f31bedb9bda524388c3bc
parent80d7b9116af979b6b827b4f2d8e871f24f698a7e
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