(options: CommonOptions)
| 300 | } |
| 301 | |
| 302 | function resolveStaticLayout(options: CommonOptions) { |
| 303 | // Static pager output has historically defaulted to stack rows even on wide terminals. |
| 304 | // Honor only an explicit split request here so captured hosts avoid surprise layout changes. |
| 305 | return options.mode === "split" ? "split" : "stack"; |
| 306 | } |
| 307 | |
| 308 | /** Format one parsed diff file for static pager hosts like LazyGit's diff panel. */ |
| 309 | async function renderStaticFile( |