grep -I: do not bother to read known-binary files
commit9fed48b1521a7928682c359bd047f8260bf80a85
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 May 2012 22:50:01 +0000 (11 17:50 -0500)
tree10709bbffebcd3b00615d0e5e23d3c99604f3197
parentba487c753bfd6d891feb325f847f7d3794baa37c
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