capDiffBlock
capDiffBlock(
file,maxLines?):DiffFile
Defined in: src/visual-blocks.ts:769
Bounds a DiffFile so persisted blocks JSON can’t balloon. If total hunk line count exceeds maxLines, returns a copy with truncated=true and hunks=[]. Otherwise returns the same object (no allocation). Pure, no mutation.
Parameters
Section titled “Parameters”maxLines?
Section titled “maxLines?”number = DIFF_BLOCK_MAX_LINES