t1700: add tests for splitIndex.maxPercentChange
[gitweb.git] / diffcore-break.c
index 904156d92ed6796bf277dda0be17fe20b580ccf4..c64359f489c87910b9d41756918dacda49276004 100644 (file)
@@ -57,8 +57,8 @@ static int should_break(struct diff_filespec *src,
                return 1; /* even their types are different */
        }
 
-       if (src->sha1_valid && dst->sha1_valid &&
-           !hashcmp(src->sha1, dst->sha1))
+       if (src->oid_valid && dst->oid_valid &&
+           !oidcmp(&src->oid, &dst->oid))
                return 0; /* they are the same */
 
        if (diff_populate_filespec(src, 0) || diff_populate_filespec(dst, 0))