dev.knotless.getCommit

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.

Details · query
Kindquery
Authorityknotless.dev
Indexed

Query

query · GET

Parameters

query string

firstRows

boolean

The rows of the first files only, as a page draws them at once: from the first, those whose rows would be shown, up to 10 files and 1500 changed lines, passing over any that changes more than 400. The rest come without their rows, but with how many there are, to be asked for by `paths`.

  • default: false

paths

array

Only these files, rows and all, by their paths after the change, or before it for one deleted; a renamed file is found as such only when both its paths are named.

  • maxLength: 50
itemsstring
  • maxLength: 4096

repo

requiredstring · at-uri

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.

sha

requiredstring

The commit, by object name or anything else git takes.

  • maxLength: 1024

Output

application/json

commit

requiredref

files

requiredarray

The files it changed, as an editor's file tree lists them, in each directory its directories before its files, each by name: of those `paths` names, if any.

itemsref

Errors

NotFound

No such repository, revision, path or record.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.