Function parse_diff_header

Source
pub(crate) fn parse_diff_header<'a, I>(
    iter: &mut I,
) -> Result<([u8; 32], [u8; 32]), Error>
where I: Iterator<Item = &'a str>,
Expand description

Given a line iterator, check to make sure the first two lines are a valid diff header as specified in dir-spec.txt.