(deps: StaticDiffPagerDeps, reason: string)
| 367 | } |
| 368 | |
| 369 | function warnFallback(deps: StaticDiffPagerDeps, reason: string) { |
| 370 | deps.stderr?.write( |
| 371 | `hunk: static pager render failed; falling back to raw diff (${sanitizeTerminalLine(reason)}).\n`, |
| 372 | ); |
| 373 | } |
| 374 | |
| 375 | /** Render diff-like pager stdin as colored static output, falling back to the original patch on failure. */ |
| 376 | export async function renderStaticDiffPager( |
no test coverage detected