Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-26 06:30:20 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-26 06:30:20 +0400
commit75c42d8cc3b42e4b82946848b8ba902b4bbcc38d (patch)
treef123aa0c4a72ab09eef8cd420d9bcf5391343666 /diffcore-rename.c
parent78817c15de0dfb408d1e35a2f692f54dc51e80a3 (diff)
Add a "max_size" parameter to diff_delta()
Anything that generates a delta to see if two objects are close usually isn't interested in the delta ends up being bigger than some specified size, and this allows us to stop delta generation early when that happens.
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r--diffcore-rename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c
index 8fb45f0b87..29609c74b6 100644
--- a/diffcore-rename.c
+++ b/diffcore-rename.c
@@ -165,7 +165,7 @@ static int estimate_similarity(struct diff_filespec *src,
delta = diff_delta(src->data, src->size,
dst->data, dst->size,
- &delta_size);
+ &delta_size, ~0UL);
/* A delta that has a lot of literal additions would have
* big delta_size no matter what else it does.