Options
string
required
The branch name to get the diff for
string
Base branch to compare against (defaults to repository’s default branch)
string
When
true, resolves the branch under the ephemeral namespacestring
When
true, resolves the base branch under the ephemeral namespacestring
Array of file paths to filter the diff. When provided, only returns diffs for the specified files
and bypasses size/type filtering
Response
object
Summary with
files, additions, deletions, and changesarray
List of changed files with
path, oldPath, state, rawState, and diff contentNotes
- For renamed files,
pathis the new location andoldPathis the previous location stateis normalized torenamed, whilerawStatepreserves Git’s original rename code (for exampleR054, where054is the similarity score)