Skip to main content

read_sha_for_kind

Function read_sha_for_kind 

Source
pub fn read_sha_for_kind(
    kind: HashKind,
    file: &mut impl Read,
) -> Result<ObjectHash, HashError>
Expand description

Read an object hash of an explicit kind from the given reader.

Does not consult the thread-local HashKind; a short or failing read surfaces as HashError with the expected/actual byte counts.