Skip to main content

is_clean

Function is_clean 

Source
pub fn is_clean() -> bool
Expand 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.