Skip to main content

dirty_paths

Function dirty_paths 

Source
pub fn dirty_paths(root: &Path) -> Result<BTreeSet<String>>
Expand description

Dirty working-tree file paths under root, relative to root, using / separators (modified, staged, deleted, or untracked; directories skipped).

Returns an empty set when root is not inside a git repository.

ยงErrors

Returns an error when git status cannot be computed.