libgit2.graph

Members

Functions

git_graph_ahead_behind
int git_graph_ahead_behind(size_t* ahead, size_t* behind, libgit2.types.git_repository* repo, const(libgit2.oid.git_oid)* local, const(libgit2.oid.git_oid)* upstream)

Count the number of unique commits between two commit objects

git_graph_descendant_of
int git_graph_descendant_of(libgit2.types.git_repository* repo, const(libgit2.oid.git_oid)* commit, const(libgit2.oid.git_oid)* ancestor)

Determine if a commit is the descendant of another commit.

git_graph_reachable_from_any
int git_graph_reachable_from_any(libgit2.types.git_repository* repo, const(libgit2.oid.git_oid)* commit, const(libgit2.oid.git_oid)* descendant_array, size_t length)

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

Meta

License

GPL-2.0(Linking Exception)