Options
| Parameter | Type | Description |
|---|---|---|
branch | Required | The branch name to get the diff for |
base | Optional | Base branch to compare against (defaults to repository’s default branch) |
ephemeral | Optional | When true, resolves the branch under the ephemeral namespace |
ephemeralBase (TypeScript)ephemeral_base (Python) | Optional | When true, resolves the base branch under the ephemeral namespace |
paths | Optional | Array of file paths to filter the diff. When provided, only returns diffs for the specified files and bypasses size/type filtering |
Response
| Field | Type | Description |
|---|---|---|
stats | Object | Summary with files, additions, and deletions |
files | Array | List of changed files with their diffs |