gitlabApifunctionno test imports itfunction gitlabApi(options: GitlabApiOptions): HostApiGitLab's API as a repository of Git.
GitLab's REST API (v4) as a repository of Git (HostApi), for gitlab.com or a server of one's own: a project is addressed by its whole path with every / encoded (groups to any depth), the tree is read by pages along the Link header until the last, and a commit is made with the Commits API, which takes every change of a batch as one commit. Where GitHub's branch is moved by compare-and-swap, GitLab checks each file the commit changes: an update, a delete or a move carries the last commit that changed the file at the commit it was checked at, and a create is refused where the file exists, so that a writer that read a file before another changed it conflicts, and writers of different files both win.
Limits, said once: a commit is by the author the store names and the committer is the user of the token (GitLab does not take another); the author's date is the host's clock; a tree is read in pages of a hundred and a tree of more than a hundred thousand entries is refused as such, never returned in part; a file is read through its blob, so a listing asks for each blob it has not seen, a few at a time.
gitlabApifunctionno test imports itfunction gitlabApi(options: GitlabApiOptions): HostApiGitLab's API as a repository of Git.
GitlabApiOptionstypeno test imports ittype GitlabApiOptions = {
readonly call: Call;
/** The whole path of the project, such as `group/subgroup/project`. */
readonly project: string;
readonly host: string;
readonly concurrency?: number;
};What GitLab's client is made with.