(label: string, lines: readonly string[])
| 81 | const missing = [...regeneratedLines].filter((line) => !committedLines.has(line)); |
| 82 | const extra = [...committedLines].filter((line) => !regeneratedLines.has(line)); |
| 83 | const show = (label: string, lines: readonly string[]) => |
| 84 | lines.length === 0 |
| 85 | ? [] |
| 86 | : [` ${label}:`, ...lines.slice(0, 20).map((line) => ` ${line}`)]; |
| 87 | return [ |
| 88 | ...show("in the regenerated tree but NOT committed (missing routes)", missing), |
| 89 | ...show("committed but NOT regenerated (stale routes)", extra), |