Skip to main content

is_clean

Function is_clean 

Source
pub fn is_clean<G: WorkingCopy>(git: &G) -> Result<bool, EngineError>
Expand description

Whether a worktree snapshot would differ from HEAD at all.

The question a reviewer surface actually has: β€œis offering to include uncommitted work going to change anything?” Answered with two cheap plumbing calls rather than by building the snapshot and comparing trees β€” the snapshot re-hashes every tracked file, which is precisely the work a clean answer lets the caller skip.