pub fn is_clean() -> boolExpand description
Return true if the working directory has no uncommitted changes.
Uses git status --porcelain — an empty output means a clean tree.
Returns false if git is not available or the directory is not a
repository.