MCPcopy
hub / github.com/conwnet/github1s / getInstance

Method getInstance

extensions/github1s/src/repository/index.ts:19–25  ·  view source on GitHub ↗
(scheme: string, repo: string)

Source from the content-addressed store, hash-verified

17 private _blameRangesCache: Map<string, BlameRange[]>;
18
19 public static getInstance(scheme: string, repo: string) {
20 const mapKey = `${scheme} ${repo}`;
21 if (!Repository.instanceMap.has(mapKey)) {
22 Repository.instanceMap.set(mapKey, new Repository(scheme, repo));
23 }
24 return Repository.instanceMap.get(mapKey)!;
25 }
26
27 private constructor(
28 private _scheme: string,

Callers 11

constructorMethod · 0.45
getCommitListMethod · 0.45
getCommitItemMethod · 0.45
loadMoreCommitsMethod · 0.45
hasMoreCommitsMethod · 0.45
getCommitChangedFilesMethod · 0.45
getFileLatestCommitMethod · 0.45
getPreviousCommitMethod · 0.45
getNextCommitMethod · 0.45

Calls 1

setMethod · 0.80

Tested by

no test coverage detected