Get the diff for a commit
Changed onGet the diff for a commit. Default is the latest commit (HEAD).
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: https://login.cribl.cloud/oauth/token
Query parameters
The Git commit hash to get the diff for.
The relative path of the file to get the diff for.
Number of lines of the diff to return. Default is 1000. Set to <code>0</code> to return the full diff, regardless of the number of lines.
Response
The requested GitDiffResult object in a single-item list.
Example response
{
"items": [
{
"diffJson": [
{
"blocks": [
{
"header": "@@ -1,5 +1,8 @@"
}
],
"newMode": "100644"
}
]
}
]
}Changes
- breaking
the response property
////became optional for the status
- breaking
- breaking
the
//////response's property type changed fromarrayto no type for status - info
added the media type
application/jsonfor the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
added the required property
to the response with the status
- breaking