grep -I: do not bother to read known-binary files
commita48d98963d665aed3cf17a24000d18983b74b310
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, 31 Oct 2011 16:47:55 +0000 (31 11:47 -0500)
tree83246848482a3ec7faeb024ed4cd36e2e72972db
parent5648129c661f99fddb91201e34a87f65891c98f7
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