grep -I: do not bother to read known-binary files
commit3a47ae13c230de7c735d722b7c250e6cf1302252
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 8 Jan 2012 17:11:34 +0000 (8 11:11 -0600)
tree0f7f6e019cd325aae4305d2423917afce5cf318e
parentf8ae659d9f17d57661d24d779e089341493f7ebd
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