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