vcs

VCS diff

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

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.