Get diff
GET
/api/v1/git/diff
Get the diff of a commit range. The diff consists of the patch describing the differences between the two revisions, similar to the output of git diff rev1..rev2, the stats of this diff similar to git diff --stat and a map of old source file contents, these can be used to expand diffs on the client side.
Parameters
Query Parameters
baseRev
The base revision of the range, this can be short hash, full hash, a tag,
or any other reference such a branch name. If empty, the first commit is used.
Typestring
headRev
The head revision of the range, this can be short hash, full hash, a tag,
or any other reference such a branch name. If empty, the current HEAD is used.
Typestring
Responses
List of diffs
application/json
JSON
{
"diff": {
"oldSources": {
"additionalProperties": "string"
},
"patch": "string",
"stats": {
"deletions": 0,
"filesChanged": 0,
"insertions": 0,
"totalOldNumLines": 0
}
}
}
GET
/api/v1/git/diff