diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:30:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:30:20 -0700 |
commit | 75c42d8cc3b42e4b82946848b8ba902b4bbcc38d (patch) | |
tree | f123aa0c4a72ab09eef8cd420d9bcf5391343666 /diffcore-break.c | |
parent | 78817c15de0dfb408d1e35a2f692f54dc51e80a3 (diff) | |
download | git-75c42d8cc3b42e4b82946848b8ba902b4bbcc38d.tar.gz |
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-break.c')
-rw-r--r-- | diffcore-break.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore-break.c b/diffcore-break.c index 920062bfd9..9852f9716c 100644 --- a/diffcore-break.c +++ b/diffcore-break.c @@ -65,7 +65,7 @@ static int should_break(struct diff_filespec *src, delta = diff_delta(src->data, src->size, dst->data, dst->size, - &delta_size); + &delta_size, ~0UL); /* Estimate the edit size by interpreting delta. */ if (count_delta(delta, delta_size, |