pub fn git_dirty(project_root: &Path) -> bool
Returns true when the working tree at project_root has uncommitted changes. Any git failure (not a repo, git absent) reports false.
true
project_root
false