MCPcopy Create free account
hub / github.com/bigcode-project/jupytercoder / insertLeading

Function insertLeading

src/diff.js:1361–1367  ·  view source on GitHub ↗
(hunk, insert, their)

Source from the content-addressed store, hash-verified

1359 }
1360
1361 function insertLeading(hunk, insert, their) {
1362 while (insert.offset < their.offset && insert.index < insert.lines.length) {
1363 var line = insert.lines[insert.index++];
1364 hunk.lines.push(line);
1365 insert.offset++;
1366 }
1367 }
1368
1369 function insertTrailing(hunk, insert) {
1370 while (insert.index < insert.lines.length) {

Callers 1

mergeLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected