@@ -425,7 +425,7 @@ struct commit_graph *parse_commit_graph(struct repository *r,
425425 FREE_AND_NULL (graph -> bloom_filter_settings );
426426 }
427427
428- hashcpy ( graph -> oid . hash , graph -> data + graph -> data_len - graph -> hash_len );
428+ oidread ( & graph -> oid , graph -> data + graph -> data_len - graph -> hash_len );
429429
430430 if (verify_commit_graph_lite (graph ))
431431 goto free_and_return ;
@@ -746,7 +746,7 @@ static void load_oid_from_graph(struct commit_graph *g,
746746
747747 lex_index = pos - g -> num_commits_in_base ;
748748
749- hashcpy (oid -> hash , g -> chunk_oid_lookup + g -> hash_len * lex_index );
749+ oidread (oid , g -> chunk_oid_lookup + g -> hash_len * lex_index );
750750}
751751
752752static struct commit_list * * insert_parent_or_die (struct repository * r ,
@@ -939,7 +939,7 @@ static struct tree *load_tree_for_commit(struct repository *r,
939939 commit_data = g -> chunk_commit_data +
940940 GRAPH_DATA_WIDTH * (graph_pos - g -> num_commits_in_base );
941941
942- hashcpy ( oid . hash , commit_data );
942+ oidread ( & oid , commit_data );
943943 set_commit_tree (c , lookup_tree (r , & oid ));
944944
945945 return c -> maybe_tree ;
@@ -2322,7 +2322,7 @@ int write_commit_graph(struct object_directory *odb,
23222322 struct commit_graph * g = ctx -> r -> objects -> commit_graph ;
23232323 for (i = 0 ; i < g -> num_commits ; i ++ ) {
23242324 struct object_id oid ;
2325- hashcpy ( oid . hash , g -> chunk_oid_lookup + g -> hash_len * i );
2325+ oidread ( & oid , g -> chunk_oid_lookup + g -> hash_len * i );
23262326 oid_array_append (& ctx -> oids , & oid );
23272327 }
23282328 }
@@ -2453,7 +2453,7 @@ int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
24532453 for (i = 0 ; i < g -> num_commits ; i ++ ) {
24542454 struct commit * graph_commit ;
24552455
2456- hashcpy ( cur_oid . hash , g -> chunk_oid_lookup + g -> hash_len * i );
2456+ oidread ( & cur_oid , g -> chunk_oid_lookup + g -> hash_len * i );
24572457
24582458 if (i && oidcmp (& prev_oid , & cur_oid ) >= 0 )
24592459 graph_report (_ ("commit-graph has incorrect OID order: %s then %s" ),
@@ -2501,7 +2501,7 @@ int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
25012501 timestamp_t generation ;
25022502
25032503 display_progress (progress , i + 1 );
2504- hashcpy ( cur_oid . hash , g -> chunk_oid_lookup + g -> hash_len * i );
2504+ oidread ( & cur_oid , g -> chunk_oid_lookup + g -> hash_len * i );
25052505
25062506 graph_commit = lookup_commit (r , & cur_oid );
25072507 odb_commit = (struct commit * )create_object (r , & cur_oid , alloc_commit_node (r ));
0 commit comments