Forum Discussion
chamidu_sumanasekara
Nov 12, 2024Tin Contributor
Azure Git get the PR difference in global diff format
Hi, I am looking for an API or workaround to get the difference of a PR in global diff format. a functionality similar to github /repos/{repo name}/pulls/{PR number}.diff
Jamony
Jun 30, 2026MCT
Hi, Azure DevOps does not expose the exact same .diff style endpoint as GitHub for pull requests. The usual route is to use the Git REST APIs to get the PR iterations and changes, or fetch the source and target refs locally and generate the diff with Git. If you need standard unified diff output, generating it locally is often the cleanest approach.