MCPcopy Create free account
hub / github.com/apache/maka / colorDiff

Function colorDiff

packages/cli/src/tui-diff.ts:28–30  ·  view source on GitHub ↗
(diff: string)

Source from the content-addressed store, hash-verified

26
27/** Color a whole diff body, preserving line breaks. */
28export function colorDiff(diff: string): string {
29 return parseUnifiedDiffRows(diff).map(colorDiffRow).join('\n');
30}

Callers 1

renderDiffResultFunction · 0.85

Calls 2

parseUnifiedDiffRowsFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected