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

Function get

packages/app/src/utils/worktree.ts:36–38  ·  view source on GitHub ↗
(scope: ServerScope, directory: string)

Source from the content-addressed store, hash-verified

34
35export const Worktree = {
36 get(scope: ServerScope, directory: string) {
37 return state.get(key(scope, directory))
38 },
39 pending(scope: ServerScope, directory: string) {
40 const id = key(scope, directory)
41 const current = state.get(id)

Callers 1

rootSessionFunction · 0.70

Calls 2

keyFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected