git_graph_reachable_from_any

Determine if a commit is reachable from any of a list of commits by following parent edges.

extern (C) nothrow @nogc public
int
git_graph_reachable_from_any

Parameters

repo libgit2.types.git_repository*

the repository where the commits exist

commit const(libgit2.oid.git_oid)*

a previously loaded commit

length size_t

the number of commits in the provided descendant_array

descendant_array const(libgit2.oid.git_oid)*

oids of the commits

Return Value

Type: int

1 if the given commit is an ancestor of any of the given potential descendants, 0 if not, error code otherwise.

Meta