grep -I: do not bother to read known-binary files
commit7b09bd77b96db627c020a55d41afbefd7ecebffe
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, 13 Mar 2012 05:44:30 +0000 (13 00:44 -0500)
treeccd1ce9484293a3a2ca179111ea5430aa047decf
parent2df52e3ea4c4c9606845b6d23df82bd3842ffce7
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