(diff: ViewDiff, side: "deletions" | "additions")
| 47 | } |
| 48 | |
| 49 | export function text(diff: ViewDiff, side: "deletions" | "additions") { |
| 50 | if (side === "deletions") return diff.fileDiff.deletionLines.join("") |
| 51 | return diff.fileDiff.additionLines.join("") |
| 52 | } |
| 53 | |
| 54 | function fileDiffFromPatch(file: string, patch: string) { |
| 55 | const key = `${file}\0${patch}` |
no outgoing calls
no test coverage detected