grep -I: do not bother to read known-binary files
commita0c5a5070117366af1d3a2f95ca2b9d35e5d7053
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 19 Jun 2012 22:29:04 +0000 (19 23:29 +0100)
tree29b907d27ea03f0f8bf64acbdee0b7fada81194b
parentc18070d364e9b9523ada22d85934cf7ec36c24d1
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