diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-12 12:01:52 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-12 12:57:25 -0800 |
commit | 962537a3eb03a118cf27d9d0da365a3216ed1caa (patch) | |
tree | abc9d37b3200dde75043e757387f665ebce5a023 /delta.h | |
parent | Add deltifier test. (diff) | |
download | tgif-962537a3eb03a118cf27d9d0da365a3216ed1caa.tar.xz |
diff-delta.c: allow delta with empty blob.
Delta computation with an empty blob used to punt and returned NULL.
This commit allows creation with empty blob; all combination of
empty->empty, empty->something, and something->empty are allowed.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'delta.h')
-rw-r--r-- | delta.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,8 +9,8 @@ extern void *patch_delta(void *src_buf, unsigned long src_size, void *delta_buf, unsigned long delta_size, unsigned long *dst_size); -/* the smallest possible delta size is 4 bytes */ -#define DELTA_SIZE_MIN 4 +/* the smallest possible delta size is 2 bytes (empty to empty) */ +#define DELTA_SIZE_MIN 2 /* * This must be called twice on the delta data buffer, first to get the |