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
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Query
query · GETParameters
query stringfirstRows
booleanThe 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
arrayOnly 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
maxLength: 4096
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.
The commit, by object name or anything else git takes.
maxLength: 1024
Output
application/jsonThe 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.
Errors
NotFound
No such repository, revision, path or record.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.getPullDiff
querySome files of a pull's diff.
-
The newest commit to change each entry of a directory.
-
dev.knotless.getBlame
queryWho last changed each line of a file at a revision.
-
dev.knotless.listCommits
queryA repository's history.
-
dev.knotless.getFile
queryOne file of a repository at a revision.