Skip to content

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.

DiffFile

number = DIFF_BLOCK_MAX_LINES

DiffFile