fn is_dirty(dir: &Path) -> Result<bool>
Returns true if the git working tree has uncommitted changes.
true