grep -I: do not bother to read known-binary files
commit763307e8c33a55094cd84d836ded55bb2dfd07e7
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, 17 Feb 2011 12:36:26 +0000 (17 13:36 +0100)
tree636a82d146408a7ed46a82802f1d50a5afc5d52c
parent78aa4ec6152cefc19d9153c8665fc65c3a3bfa85
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