MCPcopy Create free account
hub / github.com/modem-dev/hunk / warnFallback

Function warnFallback

src/ui/staticDiffPager.ts:369–373  ·  view source on GitHub ↗
(deps: StaticDiffPagerDeps, reason: string)

Source from the content-addressed store, hash-verified

367}
368
369function 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. */
376export async function renderStaticDiffPager(

Callers 1

renderStaticDiffPagerFunction · 0.85

Calls 2

sanitizeTerminalLineFunction · 0.90
writeMethod · 0.80

Tested by

no test coverage detected