MCPcopy Index your code
hub / github.com/Waishnav/devspace / finishCurrent

Function finishCurrent

src/apply-patch.ts:104–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103 let current: UpdateHunk | undefined;
104 const finishCurrent = (): void => {
105 if (!current) return;
106 if (current.lines.length === 0) throw patchError(`empty update hunk for ${path}`);
107 hunks.push(current);
108 current = undefined;
109 };
110
111 while (index < lines.length) {
112 const line = lines[index];

Callers 1

parsePatchFunction · 0.85

Calls 1

patchErrorFunction · 0.85

Tested by

no test coverage detected