graph: Create `git_graph_reachable_from_any()`
This change introduces a new API function `git_graph_reachable_from_any()`, that answers the question whether a commit is reachable from any of the provided commits through following parent edges. This function can take advantage of optimizations provided by the existence of a `commit-graph` file, since it makes it faster to know whether, given two commits X and Y, X cannot possibly be an reachable from Y. Part of: #5757
Showing
tests/graph/reachable_from_any.c
0 → 100644
Please
register
or
sign in
to comment