pub fn work_from_scan(diff: &GitDiffSnapshot, cwd: &Path) -> WorkStateExpand description
The row a scan answers, from the scan and the directory it was taken of.
The directory decides one case git cannot: git calls a missing path “not a repository” too, and a row that said so about a despawned worker’s worktree would claim something it cannot know.