pub fn working_tree_dirty(repo: &Path) -> bool
Check if the working tree has staged or unstaged changes.