Skip to main content

DIFF_MAX_LINES

Constant DIFF_MAX_LINES 

Source
pub const DIFF_MAX_LINES: usize = 400;
Expand description

Unified diff lines carried in the panel before it is truncated.

Four hundred: the panel is read on a 390px phone, where a diff line often wraps to two rows, so this is already a few thousand rows of scrolling - past that nobody is reading, and the bytes still count against the panel’s 8 MiB cap. A larger diff is not hidden: the note says how many lines were cut and which worktree holds the whole patch.