Skip to main content

PUSHED_SHA_WALK_CAP

Constant PUSHED_SHA_WALK_CAP 

Source
const PUSHED_SHA_WALK_CAP: usize = 500;
Expand description

Max commits the pushed-sha walk examines. Bounds the pathological case (a deep unpushed history) so one scan can’t walk the whole repo; 500 first-parent commits is generous headroom over any real worktree’s unpushed depth.