pub fn require_clean(dir: &Path) -> Result<(), Refusal>
Refuses when the working tree has any uncommitted change (for in-place mode).