versioning
Get the diff and log message for a commit
Get the diff and log message for a commit. Default is the latest commit (HEAD).
get/version/show
Query parameters
commitstring
The Git commit hash to retrieve the diff and log message for.
filenamestring
The relative path of the file to get the diff and log message for.
diffLineLimitinteger
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 GitShowResult object in a single-item list.
Example response
{
"items": [
{
"diffJson": [
{
"blocks": [
{
"header": "@@ -1,5 +1,8 @@"
}
],
"newMode": "100644"
}
]
}
]
}