Skip to main content

MAX_UNTRACKED_FILES

Constant MAX_UNTRACKED_FILES 

Source
pub const MAX_UNTRACKED_FILES: usize = 4;
Expand description

Skip the untracked-file scan entirely when the working tree has more than this many untracked entries. A fresh-repo state with hundreds of untracked files would otherwise dump everything into the overlay. The Inspector GIT section is unaffected; only the /diff overlay’s untracked surface is suppressed (no U rows render in the rail when the cap is exceeded).

Public so a view can surface the cap in the “+N untracked suppressed (cap M)” notice - the number lives here as the source of truth.