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

Function emptyPatch

packages/opencode/src/project/vcs.ts:18–18  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

16}
17
18const emptyPatch = (file: string) => formatPatch(structuredPatch(file, file, "", "", "", "", { context: 0 }))
19
20const nums = (list: Git.Stat[]) =>
21 new Map(list.map((item) => [item.file, { additions: item.additions, deletions: item.deletions }] as const))

Callers 2

vcs.tsFile · 0.85
totalPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected