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

Function write_graph_chunk_oids

commit-graph.c:1199–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1197}
1198
1199static int write_graph_chunk_oids(struct hashfile *f,
1200 void *data)
1201{
1202 struct write_commit_graph_context *ctx = data;
1203 struct commit **list = ctx->commits.items;
1204 int count;
1205 for (count = 0; count < ctx->commits.nr; count++, list++) {
1206 display_progress(ctx->progress, ++ctx->progress_cnt);
1207 hashwrite(f, (*list)->object.oid.hash, f->algop->rawsz);
1208 }
1209
1210 return 0;
1211}
1212
1213static const struct object_id *commit_to_oid(size_t index, const void *table)
1214{

Callers

nothing calls this directly

Calls 2

display_progressFunction · 0.85
hashwriteFunction · 0.85

Tested by

no test coverage detected