(fileDiff: FileDiffMetadata)
| 125 | } |
| 126 | |
| 127 | export function resolveFileDiffPath(fileDiff: FileDiffMetadata): string { |
| 128 | const raw = fileDiff.name ?? fileDiff.prevName ?? ""; |
| 129 | if (raw.startsWith("a/") || raw.startsWith("b/")) { |
| 130 | return raw.slice(2); |
| 131 | } |
| 132 | return raw; |
| 133 | } |
| 134 | |
| 135 | export function buildFileDiffRenderKey(fileDiff: FileDiffMetadata): string { |
| 136 | return fileDiff.cacheKey ?? `${fileDiff.prevName ?? "none"}:${fileDiff.name}`; |
no outgoing calls
no test coverage detected