coding
post/api/coding/worktree/{worktreeId}/git

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/coding/worktree/{worktreeId}/git
  • Auth: HTTP bearer

Request body

operation'discover' | 'status' | 'diff' | 'stage' | 'unstage' | 'stashes' | 'stash_create' | 'stash_apply' | 'stash_pop' | 'stash_drop' | 'export' | 'import' | 'apply_commit' | 'checkout' | 'create_branch' | 'prepare_commit' | 'rename' | 'remove' required
comparison'all' | 'unstaged' | 'staged'
freshboolean

Read the live checkout instead of the cached status snapshot.

revisionstring
hunkinteger
stashstring
messagestring
restore_indexboolean
pathsstring[]
expected_treestring
expected_headstring
refstring
bundlestring byte

Response

Git result.

headstring required
branchstring required
default_branchstring required
remote_headstring required
aheadinteger required
behindinteger required
ahead_of_defaultinteger required
revisionstring required
bundlestring byte
treestring
remote_errorstring

Changes