(line: string)
| 24 | |
| 25 | // Matches `diff --git ...` lines specifically. |
| 26 | function isGitDiffHeader(line: string): boolean { |
| 27 | return (/^diff --git /).test(line); |
| 28 | } |
| 29 | |
| 30 | // Matches lines that denote the start of a new diff's section in a |
| 31 | // multi-file patch: `diff --git ...`, `Index: ...`, or `diff -r ...`. |
no outgoing calls
no test coverage detected