pub async fn capture_workspace_diff(workspace: &Path) -> WorkspaceDiffSnapshotExpand description
Capture tracked changes against HEAD without executing Git extensions. An unborn branch uses its native-format empty tree; invalid Git/HEAD, timeout, and I/O failures remain explicit in the snapshot.