grep -I: do not bother to read known-binary files
commite1033f9e7dff9b61d2fe910d750d89a7f9975c0e
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerStepan Kasal <kasal@ucw.cz>
Wed, 16 Apr 2014 14:32:33 +0000 (16 16:32 +0200)
tree7003d82630bf0ceb5f5ea8d36dbf50538d0c75e4
parent606228a24555259b0e439ab527eb5f04160aceb9
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