Get Commit Diff
bitbucket_get_commit_diffRetrieve the unified diff of a commit in a Bitbucket repository, optionally filtering by file path and controlling whitespace handling or context lines.
Instructions
Get the diff for a specific commit.
Returns the unified diff showing all changes introduced by the commit.
Optionally restrict to a single file with path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Restrict diff to a specific file path | |
| commit_id | Yes | The commit hash (full or abbreviated) | |
| whitespace | No | Whitespace handling: SHOW, IGNORE_ALL, or IGNORE_TRAILING | |
| project_key | Yes | The project key | |
| context_lines | No | Number of context lines around changes (default: 10) | |
| repository_slug | Yes | The repository slug | |
| response_format | No | Output format: markdown (default) or json | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |