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

Function repo_find_commit_pos_in_graph

commit-graph.c:1011–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011struct commit_graph *repo_find_commit_pos_in_graph(struct repository *r,
1012 struct commit *c,
1013 uint32_t *pos)
1014{
1015 struct commit_graph *g = prepare_commit_graph(r);
1016 if (!g)
1017 return NULL;
1018 if (!find_commit_pos_in_graph(c, g, pos))
1019 return NULL;
1020 return g;
1021}
1022
1023struct commit *lookup_commit_in_graph(struct repository *repo, const struct object_id *id)
1024{

Callers 2

load_commit_graph_infoFunction · 0.85

Calls 2

prepare_commit_graphFunction · 0.85
find_commit_pos_in_graphFunction · 0.85

Tested by

no test coverage detected