diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-06-28 22:54:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-30 20:51:31 -0700 |
commit | d8c3d03a0b7f10977dd508a5a965a417b7f1b065 (patch) | |
tree | ce83d3f495e8a3acac26c8d7b5d5616cbe8c514b /diffcore-break.c | |
parent | 06f59e9f5daa06fc4bd51cf4c508b3edd3ed514a (diff) | |
download | git-d8c3d03a0b7f10977dd508a5a965a417b7f1b065.tar.gz |
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-break.c')
-rw-r--r-- | diffcore-break.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/diffcore-break.c b/diffcore-break.c index 9c19b8cab7..ae8a7d03e2 100644 --- a/diffcore-break.c +++ b/diffcore-break.c @@ -66,8 +66,7 @@ static int should_break(struct diff_filespec *src, if (base_size < MINIMUM_BREAK_SIZE) return 0; /* we do not break too small filepair */ - if (diffcore_count_changes(src->data, src->size, - dst->data, dst->size, + if (diffcore_count_changes(src, dst, NULL, NULL, 0, &src_copied, &literal_added)) |