pub fn create_journal(
common_dir: &Path,
destination_root: &Path,
snapshot: &StagedSnapshot,
) -> Result<PendingJournal, WorktreeCopyError>Expand description
What: Creates the staged journal of one destination, durable before any destination is touched. Why: Recovery needs the stage and destination named before installation starts.
In TS you’d write (pseudocode):
await createWorktreeCopyJournal({ commonDir, destinationRoot, snapshot });