Options
The branch name to get the diff for
Base branch to compare against (defaults to repository’s default branch)
When
true, resolves the branch under the ephemeral namespaceWhen
true, resolves the base branch under the ephemeral namespaceArray of file paths to filter the diff. When provided, only returns diffs for the specified files and bypasses size/type filtering
Response
Summary with
files, additions, deletions, and changesList 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)