From 1ad7341d9738e4ca8e84a13b4ce4a3153b4e92b2 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 8 Oct 2011 15:17:31 -0500 Subject: [PATCH] fixup! grep -I: do not bother to read known-binary files --- builtin/grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/grep.c b/builtin/grep.c index 8cf130ae87..95ba4a08e2 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -198,7 +198,7 @@ static int skip_binary(struct grep_opt *opt, const char *filename) attr_text = git_attr("text"); memset(&check, 0, sizeof(check)); check.attr = attr_text; - return !git_checkattr(filename, 1, &check) && + return !git_check_attr(filename, 1, &check) && ATTR_FALSE(check.value); } return 0;