checkSpeculationIntegration
Purpose and behavior
Section titled “Purpose and behavior”Test with git merge-tree whether a candidate branch merges into the host checkout’s HEAD, without changing its files or index. Returns clean or conflict with the exact commits tested, or blocked when the checkout is dirty or detached, the branch moved or Git fails. It never merges.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”repositoryRequiredstringHost Git checkout to test; it must be clean and on a branch.branchRequiredstringCandidate branch or ref, resolved to a commit and tested against the checkout’s HEAD.expectedCommitOptionalstring | undefinedCommit validated earlier, usually winner.commit; the check is blocked if the branch no longer points to it.