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

Function get_commit_tree_in_graph_one

commit-graph.c:1114–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112}
1113
1114static struct tree *get_commit_tree_in_graph_one(struct commit_graph *g,
1115 const struct commit *c)
1116{
1117 if (c->maybe_tree)
1118 return c->maybe_tree;
1119 if (commit_graph_position(c) == COMMIT_NOT_FROM_GRAPH)
1120 BUG("get_commit_tree_in_graph_one called from non-commit-graph commit");
1121
1122 return load_tree_for_commit(g, (struct commit *)c);
1123}
1124
1125struct tree *get_commit_tree_in_graph(struct repository *r, const struct commit *c)
1126{

Callers 2

get_commit_tree_in_graphFunction · 0.85
verify_one_commit_graphFunction · 0.85

Calls 2

commit_graph_positionFunction · 0.85
load_tree_for_commitFunction · 0.85

Tested by

no test coverage detected