summaryrefslogtreecommitdiff
path: root/src/commit_graph.c
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-01-06 06:26:09 -0800
committerlhchavez <lhchavez@lhchavez.com>2021-07-27 08:14:08 -0700
commitce5400cdc7cc52ace295a9fbd3cd7a6e7c63be34 (patch)
treefc27f950a3f6547aadcd638a7d3ea638b0aa85b8 /src/commit_graph.c
parent08c79128be38b6704cfdf01bca037f3fbaabf847 (diff)
downloadlibgit2-ce5400cdc7cc52ace295a9fbd3cd7a6e7c63be34.tar.gz
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
Diffstat (limited to 'src/commit_graph.c')
0 files changed, 0 insertions, 0 deletions