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

Function fill_oids_from_commits

commit-graph.c:1982–1997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1980}
1981
1982static int fill_oids_from_commits(struct write_commit_graph_context *ctx,
1983 struct oidset *commits)
1984{
1985 struct oidset_iter iter;
1986 struct object_id *oid;
1987
1988 if (!oidset_size(commits))
1989 return 0;
1990
1991 oidset_iter_init(commits, &iter);
1992 while ((oid = oidset_iter_next(&iter))) {
1993 oid_array_append(&ctx->oids, oid);
1994 }
1995
1996 return 0;
1997}
1998
1999static void fill_oids_from_all_packs(struct write_commit_graph_context *ctx)
2000{

Callers 1

write_commit_graphFunction · 0.85

Calls 4

oidset_sizeFunction · 0.85
oidset_iter_initFunction · 0.85
oidset_iter_nextFunction · 0.85
oid_array_appendFunction · 0.85

Tested by

no test coverage detected