Skip to main content

map_is_intact

Function map_is_intact 

Source
pub fn map_is_intact(dir: &Path) -> Result<bool, BridgeError>
Expand description

Whether every non-empty line of the map file parses. A missing file is intact (nothing to distrust). Any malformed line — torn tail or mid-file corruption — means the cache may be MISSING entries that recorded refs rely on, so callers must rebuild rather than trust the surviving lines alone (§12.3).