Skip to content

Function: executeGitPatchEquivalence() ​

ts
function executeGitPatchEquivalence(
   node, 
   candidates, 
   _ctx
): Promise<Readonly<Record<number, unknown>>>;

Defined in: git/src/executors/git-cross-verifiers-and-tools.ts:80

Executes a GitPatchEquivalenceNode (git.patchEquivalence) across speculative worktree candidates.

Computes normalized patch digests relative to baseRef and groups equivalent candidate branch indices.

Parameters ​

ParameterTypeDescription
nodeGitPatchEquivalenceNode<unknown>Patch-equivalence cross-verifier AST node.
candidatesreadonly CrossVerifierBranchCandidate<GitWorktreeHandle>[]Surviving speculative candidate branches.
_ctxStepExecutionContext<GitWorktreeHandle>Active step execution context.

Returns ​

Promise<Readonly<Record<number, unknown>>>

Per-branch patch equivalence report indexed by branchIndex.

Released under the MIT License.