git-gc --auto: move threshold check to need_to_gc() function.
[gitweb.git] / diffcore-rename.c
index e0a89f3796890d0d23bb80b3fd6e3cac2ae1b752..6bde4396f212833cc1d411e723d5215c086e7c2d 100644 (file)
@@ -190,8 +190,7 @@ static int estimate_similarity(struct diff_filespec *src,
 
        delta_limit = (unsigned long)
                (base_size * (MAX_SCORE-minimum_score) / MAX_SCORE);
-       if (diffcore_count_changes(src->data, src->size,
-                                  dst->data, dst->size,
+       if (diffcore_count_changes(src, dst,
                                   &src->cnt_data, &dst->cnt_data,
                                   delta_limit,
                                   &src_copied, &literal_added))