MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / buildDiffFallback

Function buildDiffFallback

app/src/modules/renderer.js:138–143  ·  view source on GitHub ↗
(oldLines, newLines, filePath, lineOffset)

Source from the content-addressed store, hash-verified

136}
137
138function buildDiffFallback(oldLines, newLines, filePath, lineOffset) {
139 const ops = [];
140 oldLines.forEach((l, i) => ops.push({ type: 'del', text: l, oldLn: i + 1 }));
141 newLines.forEach((l, i) => ops.push({ type: 'add', text: l, newLn: i + 1 }));
142 return renderDiffOps(ops, filePath, lineOffset || 0);
143}
144
145function renderDiffOps(ops, filePath, lineOffset) {
146 const off = lineOffset || 0;

Callers 1

buildDiffHtmlFunction · 0.70

Calls 1

renderDiffOpsFunction · 0.70

Tested by

no test coverage detected