Skip to content

List commits

GET
/api/v1/git/commits

List the commits in a range similar to git log, the commits are always ordered from newest to oldest in the tree.

Parameters

Query Parameters

filter

string filter for the commits. Filters commits by their ID or summary.

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

application/json
JSON
{
"commits": [
{
"author": {
"email": "string",
"name": "string"
},
"body": "string",
"committer": {
"email": "string",
"name": "string"
},
"id": "string",
"summary": "string",
"time": "string"
}
]
}

Samples