grep -I: do not bother to read known-binary files
commit6e9ce2238b201ec811cf2f747a9d0d0d3d47ffe5
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, 1 Jun 2011 10:38:45 +0000 (1 12:38 +0200)
treea99bd62b3ecd941303abbbb7d011f5a34c71dbe8
parent9e678b6d78bdd2bee1aaaa5cb79706752d0c4692
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