()
| 325 | let currentFile: string | undefined |
| 326 | |
| 327 | const flush = () => { |
| 328 | if (!current.length) return |
| 329 | if (!currentFile || !options.exclude.has(currentFile)) { |
| 330 | blocks.push(current.join("\n")) |
| 331 | } |
| 332 | current = [] |
| 333 | currentFile = undefined |
| 334 | } |
| 335 | |
| 336 | for (const line of patch.split("\n")) { |
| 337 | if (line.startsWith("diff --git ")) { |