Skip to main content

file_at

Function file_at 

Source
pub fn file_at(root: &Path, sha: &str, path: &Path) -> Result<Option<String>>
Expand description

The text of path at commit sha, or None when that commit contains no such file.

ยงErrors

Returns an error when root is in no repository, when path is outside it, or when sha names no commit in it.