MCPcopy
hub / github.com/coder/mux / generateDiff

Function generateDiff

src/node/services/tools/fileCommon.ts:61–63  ·  view source on GitHub ↗
(filePath: string, oldContent: string, newContent: string)

Source from the content-addressed store, hash-verified

59 * @returns Unified diff string
60 */
61export function generateDiff(filePath: string, oldContent: string, newContent: string): string {
62 return createPatch(filePath, oldContent, newContent, "", "", { context: 3 });
63}
64
65/**
66 * Check if a file path is the configured plan file (any mode).

Callers 4

executeFileEditOperationFunction · 0.90
createFileEditInsertToolFunction · 0.90
createMuxAgentsWriteToolFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected