get_commit_diff
Read the raw diff between a base and head revision, optionally limited to a file path, and paginate large outputs by offset to retrieve complete changes.
Instructions
Read the raw diff from base to head, optionally restricted to a file.
Follows git diff base head semantics. A large response is clipped explicitly;
pass next_offset to read the next chunk with the same revisions/path. Pin
revisions to hashes when chunking so moving branches cannot change the diff.
max_chars is clamped to 1-100000. Bitbucket may reject oversized diffs (555);
narrow with path in that case. Binary differences may have no text patch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| head | Yes | ||
| path | No | ||
| offset | No | ||
| max_chars | No | ||
| repo_slug | Yes |