| 2078 | } |
| 2079 | |
| 2080 | static int write_graph_chunk_base(struct hashfile *f, |
| 2081 | void *data) |
| 2082 | { |
| 2083 | struct write_commit_graph_context *ctx = data; |
| 2084 | int num = write_graph_chunk_base_1(f, ctx->new_base_graph); |
| 2085 | |
| 2086 | if (num != ctx->num_commit_graphs_after - 1) { |
| 2087 | error(_("failed to write correct number of base graph ids")); |
| 2088 | return -1; |
| 2089 | } |
| 2090 | |
| 2091 | return 0; |
| 2092 | } |
| 2093 | |
| 2094 | static int write_commit_graph_file(struct write_commit_graph_context *ctx) |
| 2095 | { |
nothing calls this directly
no test coverage detected