pub fn is_dirty(dir: &Path) -> bool
Whether the working tree has any staged or unstaged changes (incl. untracked).