repos.previewMerge
Preview a merge without creating commits, updating refs, or touching a working tree. Send the strategy, squash, and allow_unrelated_histories that you send to POST /merge: result is the result of that merge on the current tips. When requested, conflict content is rendered from Git objects produced in request-local scratch storage.
Scope: git:read on the repository.
Authorizations
JWT bearer token signed with your organization's registered signing key. There is no OAuth authorization server; you mint tokens yourself and the token's scopes claim carries the granted permission scopes. Public scopes: git:read (read repository contents), git:write (write branches, commits, tags, and notes), repo:write (create and manage repositories), org:read (list an organization's repositories). Each operation's security requirement names the scopes it requires. See https://code.storage/docs/getting-started/authentication for how to mint tokens.
Query Parameters
Preview a merge of branches with no common ancestor, as the allow_unrelated_histories of POST /merge.
Response
Merge preview result. Conflicted previews return HTTP 200 with status=conflicted; request and storage failures use normal HTTP errors.
Read-only merge preview result, including clean or conflicted status and optional inline conflict content.
The result of POST /merge with the same strategy, squash, and allow_unrelated_histories on the current tips: merge_commit, fast_forward, no_op, squash, or rejected. rejected means that the strategy is ff_only and a fast-forward is not possible: the merge fails with 412.
merge_commit, fast_forward, no_op, squash, rejected "merge_commit"