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

Function nums

packages/opencode/src/project/vcs.ts:20–21  ·  view source on GitHub ↗
(list: Git.Stat[])

Source from the content-addressed store, hash-verified

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))
22
23const merge = (...lists: Git.Item[][]) => {
24 const out = new Map<string, Git.Item>()

Callers 1

vcs.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected