Skip to main content

MAX_DELTA_DEPTH

Constant MAX_DELTA_DEPTH 

Source
pub const MAX_DELTA_DEPTH: u32 = 50;
Expand description

Hard cap on delta-chain depth, matching git’s own pack.deltaCacheLimit-adjacent recursion limit. A correctly built chain won’t approach this; tripping the cap means the pack is corrupted (a cycle) or pathologically deep, and either way stopping is the right call.