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

Function resolveStaticLayout

src/ui/staticDiffPager.ts:302–306  ·  view source on GitHub ↗
(options: CommonOptions)

Source from the content-addressed store, hash-verified

300}
301
302function 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. */
309async function renderStaticFile(

Callers 1

renderStaticFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected