grep -I: do not bother to read known-binary files
commite3e779d0090cdb11e465cd6e1191649123845c0f
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 30 Dec 2013 01:18:00 +0000 (29 19:18 -0600)
tree1656b86dc5437ad132921acd4b02d7d37b2bd942
parent73a806faa5af3b6bfe07de84d067951441b3e1d4
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