Skip to content

List diffs

GET
/api/v1/git/diffs

List the diffs in a commit range

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.

Type[ "string", "null" ]
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.

Type[ "string", "null" ]

Responses

List of diffs

application/json
JSON
{
"diffs": [
{
"kind": "string",
"new": null,
"old": null,
"patch": "string"
}
]
}

Samples