Skip to main content

capture_installed_path

Function capture_installed_path 

Source
pub fn capture_installed_path(
    destination_path: &Path,
    relative_path: &str,
    selected: bool,
) -> Result<InstalledPath, WorktreeCopyError>
Expand description

What: The no-follow identity of a path, read right after its creation. Why: The identity names the exact object cli-git made, not whatever later sits at the same path.

In TS you’d write (pseudocode):

async function captureInstalledPath({ destinationPath, relativePath, selected }): Promise<InstalledWorktreePath>;