| 1009 | } |
| 1010 | |
| 1011 | struct 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 | |
| 1023 | struct commit *lookup_commit_in_graph(struct repository *repo, const struct object_id *id) |
| 1024 | { |
no test coverage detected