grep -I: do not bother to read known-binary files
commit1ca9f8bdbfa68326466c20ef5f42ebbf718d2c54
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 20 May 2012 23:45:22 +0000 (20 17:45 -0600)
tree7ac6bda63763359090354b3385ac8b7829902945
parentff215003b8e7988d97cbcfd1fd8e91d0e85563b9
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