commit-graph: store the hash algorithm instead of its length
The commit-graph stores the length of the hash algorithm it uses. In subsequent commits we'll need to pass the whole hash algorithm around though, which we currently don't have access to. Refactor the code so that we store the hash algorithm instead of only its size. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
3481cb7dfd
commit
e45402bb19
@@ -84,7 +84,7 @@ struct commit_graph {
|
||||
const unsigned char *data;
|
||||
size_t data_len;
|
||||
|
||||
unsigned char hash_len;
|
||||
const struct git_hash_algo *hash_algo;
|
||||
unsigned char num_chunks;
|
||||
uint32_t num_commits;
|
||||
struct object_id oid;
|
||||
|
||||
Reference in New Issue
Block a user