v1
latestOpenAPI 3.0.32026-07-22172336.7 KBGit
Get diff between two commits
Returns a structured diff between two git refs using a two-dot comparison. See git-diff for details.
get/api/diff
Query parameters
repostring required
The fully-qualified repository name.
The fully-qualified repository name.
basestring required
The base git ref (branch, tag, or commit SHA) to diff from.
The base git ref (branch, tag, or commit SHA) to diff from.
headstring required
The head git ref (branch, tag, or commit SHA) to diff to.
The head git ref (branch, tag, or commit SHA) to diff to.
pathstring
Restrict the diff to changes touching this file path. Omit to diff all changes between the two refs.
Restrict the diff to changes touching this file path. Omit to diff all changes between the two refs.
Response
Structured diff between the two refs.