Skip to main content

create_shadow_repository

Function create_shadow_repository 

Source
pub fn create_shadow_repository(
    context: &GitContext,
    cwd: &Path,
    capture: &InvocationCapture,
    transaction_id: &str,
    transaction_directory: &Path,
) -> Result<PathBuf, GitFailure>
Expand description

What: Creates the shadow repository of one published transaction. Why: Every step runs before any native Git command reads the shadow, so the first read already sees the real config, objects, links and refs.

In TS you’d write (pseudocode):

await createShadowRepository({ gitPath, cwd, capture, transactionId, transactionDirectory });