diff options
author | Vicent Martà <vicent@github.com> | 2013-02-27 14:50:32 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-02-27 14:50:32 -0800 |
commit | e68e33f33d98c171d31dac33257250b5ecded4c9 (patch) | |
tree | 527f7c1f05dfd0427a82410a0a51c39fa6a33044 /tests-clar/diff/diff_helpers.c | |
parent | 9f9477d650c33eddad9cb48c5ec84cd703300c16 (diff) | |
parent | 1be4ba984216dfcb1f07945240c2831395fd0460 (diff) | |
download | libgit2-e68e33f33d98c171d31dac33257250b5ecded4c9.tar.gz |
Merge pull request #1233 from arrbee/file-similarity-metric
Add file similarity scoring to diff rename/copy detection
Diffstat (limited to 'tests-clar/diff/diff_helpers.c')
-rw-r--r-- | tests-clar/diff/diff_helpers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c index 1436ada03..a1f75ce39 100644 --- a/tests-clar/diff/diff_helpers.c +++ b/tests-clar/diff/diff_helpers.c @@ -32,7 +32,7 @@ int diff_file_cb( e->files++; - if (delta->binary) + if ((delta->flags & GIT_DIFF_FLAG_BINARY) != 0) e->files_binary++; cl_assert(delta->status <= GIT_DELTA_TYPECHANGE); @@ -126,7 +126,8 @@ int diff_foreach_via_iterator( /* if there are no changes, then the patch will be NULL */ if (!patch) { - cl_assert(delta->status == GIT_DELTA_UNMODIFIED || delta->binary == 1); + cl_assert(delta->status == GIT_DELTA_UNMODIFIED || + (delta->flags & GIT_DIFF_FLAG_BINARY) != 0); continue; } |