grep -I: do not bother to read known-binary files
commitd890c9f859d587b03c75a0a5fc1f7db963fd032a
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 5 Jan 2012 20:29:28 +0000 (5 14:29 -0600)
treebf5c859588440153b3bd530fc4ea6a37872fc43d
parentc410c9de676b11bb4438e69812f1aaa0eeb45ea4
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