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

Function write_graph_chunk_generation_data_overflow

commit-graph.c:1377–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1375}
1376
1377static int write_graph_chunk_generation_data_overflow(struct hashfile *f,
1378 void *data)
1379{
1380 struct write_commit_graph_context *ctx = data;
1381 int i;
1382 for (i = 0; i < ctx->commits.nr; i++) {
1383 struct commit *c = ctx->commits.items[i];
1384 timestamp_t offset = compute_generation_offset(c);
1385 display_progress(ctx->progress, ++ctx->progress_cnt);
1386
1387 if (offset > GENERATION_NUMBER_V2_OFFSET_MAX) {
1388 hashwrite_be32(f, offset >> 32);
1389 hashwrite_be32(f, (uint32_t) offset);
1390 }
1391 }
1392
1393 return 0;
1394}
1395
1396static int write_graph_chunk_extra_edges(struct hashfile *f,
1397 void *data)

Callers

nothing calls this directly

Calls 3

display_progressFunction · 0.85
hashwrite_be32Function · 0.85

Tested by

no test coverage detected