MCPcopy Create free account
hub / github.com/git/git / write_graph_chunk_base

Function write_graph_chunk_base

commit-graph.c:2080–2092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2078}
2079
2080static 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
2094static int write_commit_graph_file(struct write_commit_graph_context *ctx)
2095{

Callers

nothing calls this directly

Calls 2

write_graph_chunk_base_1Function · 0.85
errorFunction · 0.85

Tested by

no test coverage detected