Function revisions

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

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