| 1112 | } |
| 1113 | |
| 1114 | static 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 | |
| 1125 | struct tree *get_commit_tree_in_graph(struct repository *r, const struct commit *c) |
| 1126 | { |
no test coverage detected