pub fn rollback_created(
stage_root: &Path,
destination_root: &Path,
entries: &[WorktreeCopyEntry],
created: &[InstalledPath],
) -> Result<Vec<String>, WorktreeCopyError>Expand description
What: Removes every path the failed installation created that still carries cli-git’s identity and content, and returns a diagnostic for each path it had to keep. Why: Returning the kept paths lets the user see exactly what remains, instead of a silent partial removal.
In TS you’d write (pseudocode):
async function rollbackCreated({ snapshot, destinationRoot, created }): Promise<readonly string[]>;