dev.knotless.getBlame
Who last changed each line of a text file at a revision, as git blame finds it: the file's text, the ranges its highlighting paints, its lines in runs from the same commit, and each of those commits once. A binary file, or one over 256 KiB, is refused. 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 stringOutput
application/jsonEach commit a run names, once.
Its lines in runs, each last changed by one commit, from the first line on.
How many lines the text has.
minimum: 1
The file, from the root.
The ranges its highlighting paints, encoded as the pages read them, as dev.knotless.getFile has them.
The ref or commit shown, as `ref` named it, less any path.
The file's text.
Errors
NotFound
No such repository, revision or file.
InvalidRequest
The file is binary, or too large to blame.
#hunk
objectA run of lines one commit last changed.
#previous
objectWhere blame goes on before the run's commit: its parent, and the file's path there. Absent where the commit made the file.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.getCommit
queryA commit and what it changed.
-
dev.knotless.getFile
queryOne file of a repository at a revision.
-
The newest commit to change each entry of a directory.