MCPcopy Index your code
hub / github.com/codeaashu/claude-code / diffToolInputsOnly

Function diffToolInputsOnly

src/components/FileEditToolDiff.tsx:161–171  ·  view source on GitHub ↗
(filePath: string, edits: FileEdit[])

Source from the content-addressed store, hash-verified

159 }
160}
161function diffToolInputsOnly(filePath: string, edits: FileEdit[]): DiffData {
162 return {
163 patch: edits.flatMap(e => getPatchForDisplay({
164 filePath,
165 fileContents: e.old_string,
166 edits: [e]
167 })),
168 firstLine: null,
169 fileContent: undefined
170 };
171}
172function normalizeEdit(fileContent: string, edit: FileEdit): FileEdit {
173 const actualOld = findActualString(fileContent, edit.old_string) || edit.old_string;
174 const actualNew = preserveQuoteStyle(edit.old_string, actualOld, edit.new_string);

Callers 1

loadDiffDataFunction · 0.85

Calls 1

getPatchForDisplayFunction · 0.85

Tested by

no test coverage detected