MCPcopy Create free account
hub / github.com/anthropics/claude-code / linesOf

Function linesOf

mods/diff/tests/git/parse/parse-file-diffs.test.ts:11–12  ·  view source on GitHub ↗
(body: Git.FileHunks | undefined)

Source from the content-addressed store, hash-verified

9
10describe('parse-file-diffs', () => {
11 const linesOf = (body: Git.FileHunks | undefined) =>
12 body?.hunks.flatMap(hunk => hunk.lines)
13
14 const cutAtCap = (printed: readonly Fixtures.PrintedFile[]) =>
15 Fixtures.hunksAnswerOf(printed).slice(0, Limits.HOST_OUTPUT_CAP_BYTES)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected