cruft? fixup?

This commit is contained in:
Edward Thomson
2024-01-23 10:55:17 +00:00
parent 0aea3158b0
commit 78c908e321
2 changed files with 1 additions and 12 deletions

View File

@@ -109,14 +109,6 @@ struct git_indexer {
committed : 1;
/* Current object / delta being parsed */
/* TODO: pul these directly from the parser instead? */
git_object_size_t current_position;
git_object_t current_type;
git_object_size_t current_header_size;
git_object_size_t current_size;
git_oid current_ref; /* current ref delta base */
git_object_size_t current_offset; /* current ofs delta base */
struct object_entry *current_object;
git_str current_object_data;
struct delta_entry *current_delta;

View File

@@ -108,13 +108,10 @@ static int parse_object_header(
parser->current_compressed_crc = crc32(0L, Z_NULL, 0);
parser->current_bits = 4;
printf("cleared crc: %lx\n", parser->current_compressed_crc);
if (git_hash_init(&parser->current_hash) < 0)
return -1;
} else {
parser->current_size +=
(c & 0x7f) << parser->current_bits;
parser->current_size += (c & 0x7f) << parser->current_bits;
parser->current_compressed_size++;
parser->current_bits += 7;
}