pub trait Ancestry {
// Required method
fn graph_ahead_behind(
&self,
commit: Oid,
upstream: Oid,
) -> Result<GraphAheadBehind, GraphDescendant>;
}Expand description
Calculate the ancestry of two commits.
Typically implemented by a Git repository.
Required Methods§
Sourcefn graph_ahead_behind(
&self,
commit: Oid,
upstream: Oid,
) -> Result<GraphAheadBehind, GraphDescendant>
fn graph_ahead_behind( &self, commit: Oid, upstream: Oid, ) -> Result<GraphAheadBehind, GraphDescendant>
Produce the GraphAheadBehind of commit and upstream.
The result should provide how many commits are ahead and behind when
comparing the commit and upstream.