mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
cruft? fixup?
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user