(diff?: string)
| 54 | * Tries unified diff format first, then falls back to search-replace format |
| 55 | */ |
| 56 | export 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). |
no test coverage detected