Function fm::git::git

source ·
pub fn git(path: &Path) -> Result<String, Box<dyn Error>>
Expand description

Returns a string representation of the git status of this path. Will return an empty string if we’re not in a git repository.

Examples found in repository?
src/fileinfo.rs (line 468)
467
468
469
    pub fn git_string(&self) -> FmResult<String> {
        Ok(git(&self.path)?)
    }