Skip to main content

files_named_at

Function files_named_at 

Source
pub fn files_named_at(
    root: &Path,
    sha: &str,
    dir: &Path,
    file_name: &str,
) -> Result<Vec<(String, String)>>
Expand description

Every blob named file_name under dir at commit sha, as (path relative to dir, UTF-8 text) pairs.

ยงErrors

Returns an error when root is in no repository, when dir is outside it, when sha names no commit in it, or when reading the tree or a blob fails.