grep -I: do not bother to read known-binary files
commit366217b625e9a6d9fb63166959fd66c0130fd223
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:19 +0000 (15 18:05 +0100)
tree26aa8cba435369a0920b73d705b6aac47bc9069f
parent4f09090846bc4cf18b7f9c211ba848426f3a96ef
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