Skip to main content

parse_index_file

Function parse_index_file 

Source
pub fn parse_index_file(
    object_format: ObjectFormat,
    bytes: &[u8],
) -> Result<LogicalIndex, Error>
Expand description

Parses one complete raw .git/index byte string under git-index-v1: versions two through four, ordinary stage-zero rows only, the exact mode pairings, strictly increasing prefix-free paths, mandatory unknown or split-index and sparse-directory extensions rejected, and the trailing checksum verified in the declared namespace.

ยงErrors

IndexUnmerged for any nonzero stage, IntentToAdd for that bit, and IndexInvalid for every structural defect.