The work in one workspace repo since its base branch, as a git patch [write]

Changed on

Runs inside the pod as the workspace owner and returns one binary-safe git diff --binary from the merge base of HEAD with the branch's upstream (or the remote's default branch, or else the base an imported folder recorded, with base_branch "") to the working tree: commits, uncommitted edits and new files that are not ignored. The repository's own index is left as it was. Wakes a parked pod. 400 not_a_repository, 409 no_base when there is no remote branch to compare against, 413 patch_too_large over 5 MB.

post/sessions/{id}/workspace/patch

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/workspace/patch
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id

Request body

repostring required

repo directory relative to the workspace root, as /workspace/changes lists it; "." for the root

Response

OK

repostring
base_branchstring

the branch the work started from, as the remote names it

base_commitstring

the commit the patch applies to

commitsstring[]

subjects of the commits since the base, oldest first

patchstring

base64 of the patch; empty when nothing changed

Changes