MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / localDiffCommand

Function localDiffCommand

graph-ui/src/impact/change-set.ts:109–113  ·  view source on GitHub ↗
(base: string, filePath: string)

Source from the content-addressed store, hash-verified

107}
108
109export function localDiffCommand(base: string, filePath: string): string {
110 if (!validChangeRef(base)) return '';
111 const quote = (value: string) => `'${value.replaceAll("'", "'\\''")}'`;
112 return `git diff ${quote(base)} -- ${quote(filePath)}`;
113}

Callers 2

ChangeAnalysisWorkspaceFunction · 0.90
change-set.test.tsFile · 0.90

Calls 2

validChangeRefFunction · 0.85
quoteFunction · 0.70

Tested by

no test coverage detected