grep -I: do not bother to read known-binary files
commit87dd0451156c5d7883a495d10d560ac70f192867
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:11:17 +0000 (8 16:11 +0100)
tree6e94f1fb744bc6de45d84d296ede2a7a7f2c9176
parent817ffd40eda2a812a498c37dfc38c3ff82e4baa8
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