diff options
author | Nicolas Pitre <nico@cam.org> | 2005-05-20 16:59:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-20 15:41:45 -0700 |
commit | d1af002dc608be3213ba18df1a99ced0ab42e6d6 (patch) | |
tree | 191c45603eb3bc4aca09df7721bef8c740786ed5 /delta.h | |
parent | 91d7b8afc2dc8bacde2012ad076cd8d0c4d36697 (diff) | |
download | git-d1af002dc608be3213ba18df1a99ced0ab42e6d6.tar.gz git-d1af002dc608be3213ba18df1a99ced0ab42e6d6.tar.xz |
[PATCH] delta check
This adds knowledge of delta objects to fsck-cache and various object
parsing code. A new switch to git-fsck-cache is provided to display the
maximum delta depth found in a repository.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'delta.h')
-rw-r--r-- | delta.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,6 +1,21 @@ +#ifndef DELTA_H +#define DELTA_H + +/* 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); extern void *patch_delta(void *src_buf, unsigned long src_size, void *delta_buf, unsigned long delta_size, unsigned long *dst_size); + +/* handling of delta objects */ +struct delta; +struct object_list; +extern struct delta *lookup_delta(unsigned char *sha1); +extern int parse_delta_buffer(struct delta *item, void *buffer, unsigned long size); +extern int parse_delta(struct delta *item, unsigned char sha1); +extern int process_deltas(void *src, unsigned long src_size, + const char *src_type, struct object_list *delta); + +#endif |