grep -I: do not bother to read known-binary files
commit745a83e9b993d89aca5d23988b6664b6739f2091
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Nov 2010 15:10:43 +0000 (8 16:10 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 27 Oct 2011 08:51:32 +0000 (27 09:51 +0100)
treefca43b74cd7377d028cab2823f7bdd0dc435b86c
parent55bc333f86f8db1de3a15fea6fec7fc84b02d687
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