Skip to main content

recover_commit_transactions

Function recover_commit_transactions 

Source
pub fn recover_commit_transactions(
    git: &GitContext,
    cwd: &Path,
    identity: &WorktreeIdentity,
) -> Result<Vec<RecoveryOutcome>, RecoveryStop>
Expand description

What: Recover every interrupted transaction of the invocation’s worktree; returns the outcomes, empty when there was nothing to do. Why: recoverCommitTransaction, with the legacy directory stopping the command.

In TS you’d write (pseudocode):

async function recoverCommitTransaction({ args, gitPath, identity }): Promise<readonly CommitTransactionRecoveryOutcome[]>;