MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / generateUnifiedDiff

Function generateUnifiedDiff

src/utils/diff.ts:8–10  ·  view source on GitHub ↗
(oldContent: string, newContent: string, filePath: string)

Source from the content-addressed store, hash-verified

6}
7
8export function generateUnifiedDiff(oldContent: string, newContent: string, filePath: string): string {
9 return createPatch(filePath, oldContent, newContent, '', '', { context: 3 });
10}
11
12export function computeDiffStats(oldContent: string, newContent: string): DiffStats {
13 const changes = diffLines(oldContent, newContent);

Callers 2

diff-stats.test.tsFile · 0.85
DiffViewerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected