| 998 | } |
| 999 | |
| 1000 | static 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 | |
| 1011 | struct commit_graph *repo_find_commit_pos_in_graph(struct repository *r, |
| 1012 | struct commit *c, |
no test coverage detected