MCPcopy Index your code
hub / github.com/continuedev/continue / extractBeforeLines

Function extractBeforeLines

core/edit/lazy/unifiedDiffApply.ts:31–35  ·  view source on GitHub ↗
(hunkLines: string[])

Source from the content-addressed store, hash-verified

29}
30
31function extractBeforeLines(hunkLines: string[]): string[] {
32 return hunkLines
33 .filter((line) => line.startsWith("-") || !line.startsWith("+"))
34 .map((line) => line.substring(1));
35}
36
37/**
38 * Applies a unified diff to source code and returns an array of DiffLine objects.

Callers 1

applyUnifiedDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected