MCPcopy Create free account
hub / github.com/kpdecker/jsdiff / contextLines

Function contextLines

src/patch/create.ts:252–254  ·  view source on GitHub ↗
(lines: string[])

Source from the content-addressed store, hash-verified

250 diff.push({value: '', lines: []}); // Append an empty value to make cleanup easier
251
252 function contextLines(lines: string[]) {
253 return lines.map(function(entry) { return ' ' + entry; });
254 }
255
256 const hunks = [];
257 let oldRangeStart = 0, newRangeStart = 0, curRange: string[] = [],

Callers 1

diffLinesResultToPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected