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

Function totalPatch

packages/opencode/src/project/vcs.ts:144–147  ·  view source on GitHub ↗
(file: string, patch: string, total: number)

Source from the content-addressed store, hash-verified

142})
143
144const totalPatch = (file: string, patch: string, total: number) => {
145 if (total + Buffer.byteLength(patch) <= MAX_TOTAL_PATCH_BYTES) return { patch, capped: false }
146 return { patch: emptyPatch(file), capped: true }
147}
148
149const patchForItem = Effect.fnUntraced(function* (
150 git: Git.Interface,

Callers 1

vcs.tsFile · 0.85

Calls 1

emptyPatchFunction · 0.85

Tested by

no test coverage detected