A commit, and what it changed, file by file, as `git show` has it. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.
Parameters
Output
application/jsoncommit
refdev.knotless.defs#commitView
Required
No description available.
files
array
Required
No description available.
Errors
NotFound
No such repository, revision, path or record. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "A commit, and what it changed, file by file, as `git show` has it. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.",
"errors": [
{
"description": "No such repository, revision, path or record.",
"name": "NotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"commit": {
"ref": "dev.knotless.defs#commitView",
"type": "ref"
},
"files": {
"items": {
"ref": "dev.knotless.defs#fileDiffView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"commit",
"files"
],
"type": "object"
}
},
"parameters": {
"properties": {
"repo": {
"description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
"format": "at-uri",
"type": "string"
},
"sha": {
"description": "The commit, by object name or anything else git takes.",
"maxLength": 1024,
"type": "string"
}
},
"required": [
"repo",
"sha"
],
"type": "params"
},
"type": "query"
}