(value: string | undefined)
| 55 | } |
| 56 | |
| 57 | const fileFromDiffPath = (value: string | undefined) => { |
| 58 | if (!value || value === "/dev/null") return |
| 59 | const file = parsePathToken(value) |
| 60 | if (file.startsWith("a/") || file.startsWith("b/")) return file.slice(2) |
| 61 | return file |
| 62 | } |
| 63 | |
| 64 | const fileFromGitHeader = (header: string) => { |
| 65 | if (header.startsWith('"')) { |
no test coverage detected