summaryrefslogtreecommitdiff
path: root/tests-clar/diff/diffiter.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-09-10 11:49:12 -0700
committerRussell Belfer <rb@github.com>2012-09-10 11:49:12 -0700
commite597b1890ebd43e398d84b7bf4ca366365b24d27 (patch)
tree1c82889385a73be24fe95f24ad43c207023d28f9 /tests-clar/diff/diffiter.c
parentb36effa22e015871948daeea250b4996c663e11a (diff)
downloadlibgit2-e597b1890ebd43e398d84b7bf4ca366365b24d27.tar.gz
Move diff max_size to public API
This commit adds a max_size value in the public `git_diff_options` structure so that the user can automatically flag blobs over a certain size as binary regardless of other properties. Also, and perhaps more importantly, this moves binary detection to be as early as possible in the diff traversal inner loop and makes sure that we stop loading objects as soon as we decide that they are binary.
Diffstat (limited to 'tests-clar/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions