aboutsummaryrefslogtreecommitdiff
path: root/delta.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 19:30:20 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 19:30:20 -0700
commit75c42d8cc3b42e4b82946848b8ba902b4bbcc38d (patch)
treef123aa0c4a72ab09eef8cd420d9bcf5391343666 /delta.h
parent78817c15de0dfb408d1e35a2f692f54dc51e80a3 (diff)
downloadgit-75c42d8cc3b42e4b82946848b8ba902b4bbcc38d.tar.gz
git-75c42d8cc3b42e4b82946848b8ba902b4bbcc38d.tar.xz
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 'delta.h')
-rw-r--r--delta.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/delta.h b/delta.h
index df97ff84f..ccc0c9ece 100644
--- a/delta.h
+++ b/delta.h
@@ -4,7 +4,7 @@
/* handling of delta buffers */
extern void *diff_delta(void *from_buf, unsigned long from_size,
void *to_buf, unsigned long to_size,
- unsigned long *delta_size);
+ unsigned long *delta_size, unsigned long max_size);
extern void *patch_delta(void *src_buf, unsigned long src_size,
void *delta_buf, unsigned long delta_size,
unsigned long *dst_size);