mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
fixup! grep -I: do not bother to read known-binary files
This commit is contained in:
parent
dd37f980a8
commit
1ad7341d97
|
@ -198,7 +198,7 @@ static int skip_binary(struct grep_opt *opt, const char *filename)
|
||||||
attr_text = git_attr("text");
|
attr_text = git_attr("text");
|
||||||
memset(&check, 0, sizeof(check));
|
memset(&check, 0, sizeof(check));
|
||||||
check.attr = attr_text;
|
check.attr = attr_text;
|
||||||
return !git_checkattr(filename, 1, &check) &&
|
return !git_check_attr(filename, 1, &check) &&
|
||||||
ATTR_FALSE(check.value);
|
ATTR_FALSE(check.value);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue