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

Function find_commit_pos_in_graph

commit-graph.c:1000–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000static int find_commit_pos_in_graph(struct commit *item, struct commit_graph *g, uint32_t *pos)
1001{
1002 uint32_t graph_pos = commit_graph_position(item);
1003 if (graph_pos != COMMIT_NOT_FROM_GRAPH) {
1004 *pos = graph_pos;
1005 return 1;
1006 } else {
1007 return search_commit_pos_in_graph(&item->object.oid, g, pos);
1008 }
1009}
1010
1011struct commit_graph *repo_find_commit_pos_in_graph(struct repository *r,
1012 struct commit *c,

Callers 4

write_graph_chunk_dataFunction · 0.85

Calls 2

commit_graph_positionFunction · 0.85

Tested by

no test coverage detected