MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / computeDiffStats

Function computeDiffStats

src/core/diff/stats.ts:56–59  ·  view source on GitHub ↗
(diff?: string)

Source from the content-addressed store, hash-verified

54 * Tries unified diff format first, then falls back to search-replace format
55 */
56export function computeDiffStats(diff?: string): DiffStats | null {
57 if (!diff) return null
58 return computeUnifiedDiffStats(diff)
59}
60
61/**
62 * Build a unified diff for a brand new file (all content lines are additions).

Callers 7

executeMethod · 0.90
executeMethod · 0.90
executeMethod · 0.90
handleAddFileMethod · 0.90
handleUpdateFileMethod · 0.90
executeMethod · 0.90
executeMethod · 0.90

Calls 1

computeUnifiedDiffStatsFunction · 0.85

Tested by

no test coverage detected