diff options
author | Nicolas Pitre <nico@cam.org> | 2006-04-25 05:07:47 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-25 07:27:33 +0200 |
commit | 08abe669c05521499149dbf84fedefb04a8fa34d (patch) | |
tree | c08d8f9f4382085c76bbb9c1f3ffa47364746775 /patch-delta.c | |
parent | Merge branch 'fix' (diff) | |
download | git-08abe669c05521499149dbf84fedefb04a8fa34d.tar.xz git-08abe669c05521499149dbf84fedefb04a8fa34d.zip |
split the diff-delta interface
This patch splits the diff-delta interface into index creation and delta
generation. A wrapper is provided to preserve the diff-delta() call.
This will allow for an optimization in pack-objects.c where the source
object could be fixed and a full window of objects tentatively tried
against
that same source object without recomputing the source index each time.
This patch only restructure things, plus a couple cleanups for good
measure. There is no performance change yet.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Diffstat (limited to 'patch-delta.c')
-rw-r--r-- | patch-delta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patch-delta.c b/patch-delta.c index d95f0d9721..8f318ed8aa 100644 --- a/patch-delta.c +++ b/patch-delta.c @@ -13,8 +13,8 @@ #include <string.h> #include "delta.h" -void *patch_delta(void *src_buf, unsigned long src_size, - void *delta_buf, unsigned long delta_size, +void *patch_delta(const void *src_buf, unsigned long src_size, + const void *delta_buf, unsigned long delta_size, unsigned long *dst_size) { const unsigned char *data, *top; |