Function radicle_source::revision::revisions[][src]

pub fn revisions<P, U>(
    browser: &Browser<'_>,
    peer: Category<P, U>
) -> Result<Option<Revisions<P, U>>, Error> where
    P: Clone + ToString

Provide the Revisions of a peer.

If the peer is Category::Local, meaning that is the current person doing the browsing and no remote is set for the reference.

Othewise, the peer is Category::Remote, meaning that we are looking into a remote part of a reference.

Errors

  • If we cannot get the branches from the Browser