devops_get_item_content_diff
Retrieve textual diff (changed hunks) between two file versions in a repository. Compares base and target commits, showing line numbers with '+' for added and '-' for removed lines.
Instructions
Get textual diff between two versions of a file (changed hunks only). Lines are numbered; added lines are prefixed with '+', and removed with '-'. For full content of specific file, use item content tool with target version .
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository_id | Yes | Repository name or ID. | |
| path | Yes | Path of the file to diff, e.g. src/foo.cs | |
| base_version | Yes | Base commit ID, e.g. lastMergeTargetCommit. | |
| target_version | Yes | Target commit ID, e.g. lastMergeSourceCommit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |