(patch: string)
| 897 | } |
| 898 | |
| 899 | function countHunks(patch: string): number { |
| 900 | let count = 0 |
| 901 | for (const line of patch.split("\n")) { |
| 902 | if (line.startsWith("@@")) { |
| 903 | count++ |
| 904 | } |
| 905 | } |
| 906 | return count |
| 907 | } |
| 908 | |
| 909 | // Common binary file extensions for fallback detection (when git can't determine) |
| 910 | const BINARY_EXTENSIONS = new Set([ |
no outgoing calls
no test coverage detected