MCPcopy Index your code
hub / github.com/anomalyco/opencode / locked

Function locked

packages/core/src/git.ts:181–182  ·  view source on GitHub ↗
(repository: Repository, effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

179 const proc = yield* AppProcess.Service
180 const locks = KeyedMutex.makeUnsafe<string>()
181 const locked = <A, E, R>(repository: Repository, effect: Effect.Effect<A, E, R>) =>
182 locks.withLock(repository.gitDirectory)(effect)
183
184 const discover = Effect.fn("Git.repo.discover")(function* (input: AbsolutePath) {
185 const dotgit = yield* fs.up({ targets: [".git"], start: input }).pipe(

Callers 2

git.tsFile · 0.70
AppFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected