MCPcopy Create free account
hub / github.com/anomalyco/opencode / repositoryCacheIdentity

Function repositoryCacheIdentity

packages/opencode/src/util/repository.ts:226–228  ·  view source on GitHub ↗
(input: Reference)

Source from the content-addressed store, hash-verified

224}
225
226export function repositoryCacheIdentity(input: Reference) {
227 return `${input.host}/${input.path}`
228}
229
230export function sameRepositoryReference(left: Reference, right: Reference) {
231 return repositoryCacheIdentity(left) === repositoryCacheIdentity(right)

Callers 2

repository.test.tsFile · 0.90
sameRepositoryReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected