Get commit for a revision
GET
/api/v1/git/commit/{revision}
Get a single commit by its revision.
The revision can be anything accepted by git rev-parse
. For a branch it will return the HEAD of the branch.
Parameters
Path Parameters
revision*
The revision of the commit to retrieve.
This can be the short hash, full hash, a tag, or any other reference such as HEAD
, a branch name or a tag name
Typestring
RequiredExample
"HEAD"
Responses
Commit exists
application/json
JSON
{
"author": {
"email": "string",
"name": "string"
},
"body": "string",
"committer": {
"email": "string",
"name": "string"
},
"id": "string",
"summary": "string",
"time": "string"
}
GET
/api/v1/git/commit/{revision}