summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-06-29 05:54:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-01 03:51:31 (GMT)
commitd8c3d03a0b7f10977dd508a5a965a417b7f1b065 (patch)
treece83d3f495e8a3acac26c8d7b5d5616cbe8c514b /diffcore-rename.c
parent06f59e9f5daa06fc4bd51cf4c508b3edd3ed514a (diff)
downloadgit-d8c3d03a0b7f10977dd508a5a965a417b7f1b065.zip
git-d8c3d03a0b7f10977dd508a5a965a417b7f1b065.tar.gz
git-d8c3d03a0b7f10977dd508a5a965a417b7f1b065.tar.bz2
diffcore_count_changes: pass diffcore_filespec
We may want to use richer information on the data we are dealing with in this function, so instead of passing a buffer address and length, just pass the diffcore_filespec structure. Existing callers always call this function with parameters taken from a filespec anyway, so there is no functionality changes. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r--diffcore-rename.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 79c984c..cb22736 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -189,8 +189,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))