Trait radicle_cli::git::pretty_diff::Repo

source ·
pub trait Repo {
    // Required methods
    fn blob(&self, oid: Oid) -> Result<Blob, Error>;
    fn file(&self, path: &Path) -> Option<Blob>;
}
Expand description

A repository of Git blobs.

Required Methods§

source

fn blob(&self, oid: Oid) -> Result<Blob, Error>

Lookup a blob from the repo.

source

fn file(&self, path: &Path) -> Option<Blob>

Lookup a file in the workdir.

Implementors§