summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6becd7d)
raw | patch | inline | side by side (parent: 6becd7d)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 15 Feb 2006 20:47:43 +0000 (12:47 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 15 Feb 2006 21:03:27 +0000 (13:03 -0800) |
The delta depth is unsigned.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | patch | blob | history | |
pack-check.c | patch | blob | history | |
sha1_file.c | patch | blob | history |
index c255421ab96f1ca3ba1913e84d377ada003d04db..b5db01f28d9ac09fe016e1146e0e2b014373d0e9 100644 (file)
--- a/cache.h
+++ b/cache.h
extern int nth_packed_object_sha1(const struct packed_git *, int, unsigned char*);
extern int find_pack_entry_one(const unsigned char *, struct pack_entry *, struct packed_git *);
extern void *unpack_entry_gently(struct pack_entry *, char *, unsigned long *);
-extern void packed_object_info_detail(struct pack_entry *, char *, unsigned long *, unsigned long *, int *, unsigned char *);
+extern void packed_object_info_detail(struct pack_entry *, char *, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
/* Dumb servers support */
extern int update_server_info(int);
diff --git a/pack-check.c b/pack-check.c
index 67a7ecdf16a39000ffa9ed3453854607bc1e141d..eca32b6cabeaf8881abb9c93d9ca89fc556a937c 100644 (file)
--- a/pack-check.c
+++ b/pack-check.c
char type[20];
unsigned long size;
unsigned long store_size;
- int delta_chain_length;
+ unsigned int delta_chain_length;
if (nth_packed_object_sha1(p, i, sha1))
die("internal error pack-check nth-packed-object");
if (!delta_chain_length)
printf("%-6s %lu %u\n", type, size, e.offset);
else
- printf("%-6s %lu %u %d %s\n", type, size, e.offset,
+ printf("%-6s %lu %u %u %s\n", type, size, e.offset,
delta_chain_length, sha1_to_hex(base_sha1));
}
diff --git a/sha1_file.c b/sha1_file.c
index 3d11a9bfdc56c00056c2057af5e6455742ab31f5..64cf2454182dbf4cbf1a2ee70dea4823cf8cfaa0 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
char *type,
unsigned long *size,
unsigned long *store_size,
- int *delta_chain_length,
+ unsigned int *delta_chain_length,
unsigned char *base_sha1)
{
struct packed_git *p = e->p;
if (kind != OBJ_DELTA)
*delta_chain_length = 0;
else {
- int chain_length = 0;
+ unsigned int chain_length = 0;
memcpy(base_sha1, pack, 20);
do {
struct pack_entry base_ent;