get_merge_request_file_diff
Retrieve file diffs from a merge request by specifying project ID, file paths, and either merge request IID or source branch.
Instructions
Get diffs for specific files from a merge request (mergeRequestIid or branchName required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| merge_request_iid | No | The IID of a merge request | |
| source_branch | No | Source branch name | |
| file_paths | Yes | List of file paths to retrieve diffs for (e.g. ['src/api/users.ts', 'src/repo/user.go']). Call list_merge_request_changed_files first to get the full list of changed paths. | |
| unidiff | No | Present diff in the unified diff format. Default is false. |