diff options
author | Vicent Marti <vicent@github.com> | 2014-05-17 02:37:13 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-05-17 02:37:13 +0200 |
commit | 191ff93609efd393bcb2d4747d5cb9779a78a73f (patch) | |
tree | 90447539df3b3186d656be60c48dffa805f528d2 /src/blob.c | |
parent | adebcb1645f7bd652ff4449ecf41c39ded12d0c7 (diff) | |
parent | 8af4966db15ed35832235627e2d01068d4734dea (diff) | |
download | libgit2-191ff93609efd393bcb2d4747d5cb9779a78a73f.tar.gz |
Merge pull request #2362 from libgit2/rb/update-4k-to-8k
Test and fix Git diff binary detection compatibility
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c index ab7dec67f..30d5b705b 100644 --- a/src/blob.c +++ b/src/blob.c @@ -334,7 +334,8 @@ int git_blob_is_binary(const git_blob *blob) assert(blob); content.ptr = blob->odb_object->buffer; - content.size = min(blob->odb_object->cached.size, 4000); + content.size = + min(blob->odb_object->cached.size, GIT_FILTER_BYTES_TO_CHECK_NUL); content.asize = 0; return git_buf_text_is_binary(&content); |