Ancestry

Trait Ancestry 

Source
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§

Source

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.

Implementors§

Source§

impl Ancestry for radicle_node::storage::git::Repository

Source§

impl Ancestry for radicle_node::git::raw::Repository