vcs

Diff HEAD to the working copy (working), the base merge-base to the working copy (branch), or the base merge-base to HEAD (committed). Omitting base preserves repository-default comparison; supplying it overrides the comparison without saving it.

get/api/vcs/diff

Request

  • Base URL
    https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://opencode.ai/api/vcs/diff
  • Auth
    none required

Query parameters

directorystring nullable
mode'working' | 'branch' | 'committed' required
basestring
contextstring nullable
untracked'files' | 'folders'

Response

Success

Changes

    • info

      added the new optional query request parameter untracked

    • info

      added the optional property // to the response with the status