Build Pierre rows for one file using the selected terminal diff layout.
( file: DiffFile, layout: Exclude<LayoutMode, "auto">, highlightedDiff: HighlightedDiffCode | null | undefined, theme: AppTheme, )
| 33 | |
| 34 | /** Build Pierre rows for one file using the selected terminal diff layout. */ |
| 35 | function buildBaseRows( |
| 36 | file: DiffFile, |
| 37 | layout: Exclude<LayoutMode, "auto">, |
| 38 | highlightedDiff: HighlightedDiffCode | null | undefined, |
| 39 | theme: AppTheme, |
| 40 | ) { |
| 41 | return layout === "split" |
| 42 | ? buildSplitRows(file, highlightedDiff ?? null, theme) |
| 43 | : buildStackRows(file, highlightedDiff ?? null, theme); |
| 44 | } |
| 45 | |
| 46 | /** Build the shared file-level diff plan consumed by rendering and geometry measurement. */ |
| 47 | export function buildDiffSectionRowPlan({ |
no test coverage detected