grep -I: do not bother to read known-binary files
commitb307d47739d3d5a5bb6b4eb421eecc4086e2f74e
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 4 Jun 2011 13:36:29 +0000 (4 15:36 +0200)
tree6a0d5b56e982d25246ff8cf2a4b93a5d124da273
parentdedf3a5d2a9f2284b9c725f86659449befe6b039
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