From 5fdc41e76591aebdbae3b49440bc2c8b2430718c Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Wed, 22 Aug 2012 13:57:57 -0700 Subject: Minor bug fixes in diff code In looking at PR #878, I found a few small bugs in the diff code, mostly related to work that can be avoided when processing tree- to-tree diffs that was always being carried out. This commit has some small fixes in it. --- tests-clar/diff/diff_helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests-clar/diff/diff_helpers.c') diff --git a/tests-clar/diff/diff_helpers.c b/tests-clar/diff/diff_helpers.c index 18daa080..7b391262 100644 --- a/tests-clar/diff/diff_helpers.c +++ b/tests-clar/diff/diff_helpers.c @@ -30,7 +30,8 @@ int diff_file_fn( GIT_UNUSED(progress); - e-> at_least_one_of_them_is_binary = delta->binary; + if (delta->binary) + e->at_least_one_of_them_is_binary = true; e->files++; switch (delta->status) { -- cgit v1.2.1