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

Method getFileBlameRanges

extensions/github1s/src/repository/index.ts:136–144  ·  view source on GitHub ↗
(ref: string, path: string)

Source from the content-addressed store, hash-verified

134 }
135
136 async getFileBlameRanges(ref: string, path: string) {
137 const cacheKey = `${ref} ${path}`;
138 if (!this._blameRangesCache.has(cacheKey)) {
139 const dataSource = await adapterManager.getAdapter(this._scheme).resolveDataSource();
140 const blameRanges = await dataSource.provideFileBlameRanges(this._repo, ref, path);
141 this._blameRangesCache.set(cacheKey, blameRanges);
142 }
143 return this._blameRangesCache.get(cacheKey) || [];
144 }
145}

Callers 1

getBlameRangesMethod · 0.80

Calls 4

getAdapterMethod · 0.80
setMethod · 0.80
resolveDataSourceMethod · 0.65

Tested by

no test coverage detected