MCPcopy Index your code
hub / github.com/git/git / graph_read_commit_data

Function graph_read_commit_data

commit-graph.c:316–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316static int graph_read_commit_data(const unsigned char *chunk_start,
317 size_t chunk_size, void *data)
318{
319 struct commit_graph *g = data;
320 if (chunk_size / graph_data_width(g->hash_algo) != g->num_commits)
321 return error(_("commit-graph commit data chunk is wrong size"));
322 g->chunk_commit_data = chunk_start;
323 return 0;
324}
325
326static int graph_read_generation_data(const unsigned char *chunk_start,
327 size_t chunk_size, void *data)

Callers

nothing calls this directly

Calls 2

graph_data_widthFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected