buffer = xmalloc(size + 1);
buffer[size] = 0;
memset(&stream, 0, sizeof(stream));
buffer = xmalloc(size + 1);
buffer[size] = 0;
memset(&stream, 0, sizeof(stream));
{
struct pack_entry base_ent;
void *delta_data, *result, *base;
unsigned long result_size, base_size;
{
struct pack_entry base_ent;
void *delta_data, *result, *base;
unsigned long result_size, base_size;
if (!find_pack_entry_one(base_sha1, &base_ent, p))
die("failed to find delta-pack base object %s",
sha1_to_hex(base_sha1));
if (!find_pack_entry_one(base_sha1, &base_ent, p))
die("failed to find delta-pack base object %s",
sha1_to_hex(base_sha1));
- delta_data = unpack_compressed_entry(base_sha1 + 20,
- delta_size, left - 20);
+ delta_data = unpack_compressed_entry(p, offset + 20, delta_size);
char *type, unsigned long *sizep)
{
struct packed_git *p = entry->p;
char *type, unsigned long *sizep)
{
struct packed_git *p = entry->p;
enum object_type kind;
offset = unpack_object_header(p, entry->offset, &kind, &size);
enum object_type kind;
offset = unpack_object_header(p, entry->offset, &kind, &size);
- return unpack_delta_entry(pack, size, left, type, sizep, p);
+ return unpack_delta_entry(p, offset, size, type, sizep);