Get git log
List the commits of ref, newest first. Page with limit and skip.
- Runs in the sandbox as the image user. Needs write access to the sandbox, because git runs the repository's own config and filters.
- Served at the access endpoint of the sandbox (
access_endpointofGET /v1/sandboxes/{sandboxId}), not at the API host. - A paused sandbox returns 409, unless
resume=true. A sandbox that started before its files server existed returns 409sandbox_update_requireduntil it restarts. - A refused operation returns its code as the problem type.
- A path that starts with
~or~/names the home directory of the user that the operation runs as.~namereturns 422.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Sandbox ID (ULID)
Query Parameters
A directory inside the work tree: absolute, or relative to the sandbox working directory
"."Wake a paused sandbox to serve this request
Revision to list the history of
^[^-\x00\n\r][^\x00\n\r]*$"HEAD"Maximum number of commits
int321 <= value <= 50050Commits to skip, for paging
int320 <= valueResponse Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/sandboxes/string/git/log"{ "commits": [ { "author_email": "string", "author_name": "string", "authored_at": "2019-08-24T14:15:22Z", "committed_at": "2019-08-24T14:15:22Z", "committer_name": "string", "oid": "string", "parents": [ "string" ], "subject": "string" } ]}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}Get git diff files GET
Compare the working tree (staged and unstaged changes) with `base`, file by file, and list untracked files. - The `lines` object counts changed lines, or is null when the count is unknown. - To get the base side of a file, call `GET git/blob` with `old_oid`. - Runs in the sandbox as the image user. Needs write access to the sandbox, because git runs the repository's own config and filters. - Served at the access endpoint of the sandbox (`access_endpoint` of `GET /v1/sandboxes/{sandboxId}`), not at the API host. - A paused sandbox returns 409, unless `resume=true`. A sandbox that started before its files server existed returns 409 `sandbox_update_required` until it restarts. - A refused operation returns its code as the problem type. - A path that starts with `~` or `~/` names the home directory of the user that the operation runs as. `~name` returns 422.
Get a git patch GET
Return the staged, unstaged and untracked, not ignored changes against `base` as one unified patch. - Run `git apply -p1` in the work tree root to apply it. Binary files are included. - A patch above 6 MiB stops after its last complete file and sets `Tektona-Git-Truncated: true`. - The index of the repository does not change. - Runs in the sandbox as the image user. Needs write access to the sandbox, because git runs the repository's own config and filters. - Served at the access endpoint of the sandbox (`access_endpoint` of `GET /v1/sandboxes/{sandboxId}`), not at the API host. - A paused sandbox returns 409, unless `resume=true`. A sandbox that started before its files server existed returns 409 `sandbox_update_required` until it restarts. - A refused operation returns its code as the problem type. - A path that starts with `~` or `~/` names the home directory of the user that the operation runs as. `~name` returns 422.