Skip to main content

scan_commit

Function scan_commit 

Source
pub async fn scan_commit(cwd: &Path, sha: &str) -> ScanOutcome
Expand description

Scan a single commit’s own diff (<sha>^..<sha>, or against the empty tree for a parentless root commit) into per-file hunks. Never surfaces untracked files - a commit’s diff is closed over its own changes.