Skip to main content

capture_invocation_base

Function capture_invocation_base 

Source
pub fn capture_invocation_base(
    context: &GitContext,
    cwd: &Path,
    layout: InvocationLayout,
) -> Result<InvocationCapture, GitFailure>
Expand description

What: Completes the capture with the preparation base: the target’s commit now. Why: Read after the layout and after the capture sequence is taken, so the base is never older than the sequence the transaction records.

In TS you’d write (pseudocode):

await captureInvocationBase({ gitPath, cwd, layout });