Operation detail

Back to operation catalog

git.diff

Reads a local git worktree's unified diff for the unstaged, staged, or head scope, bounded and truncation-flagged.

FieldValue
Classlocal_observation
Ownersidecatd.git-effects
Input schemasidecat.git_diff_request.v0
Output schemasidecat.git_diff_response.v0

Input template

{
  "repo": "/path/to/git/worktree",
  "schema": "sidecat.git_diff_request.v0",
  "scope": "unstaged"
}