| 1375 | } |
| 1376 | |
| 1377 | static 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 | |
| 1396 | static int write_graph_chunk_extra_edges(struct hashfile *f, |
| 1397 | void *data) |
nothing calls this directly
no test coverage detected