pub fn read_sha_for_kind( kind: HashKind, file: &mut impl Read, ) -> Result<ObjectHash, HashError>
Read an object hash of an explicit kind from the given reader.
kind
Does not consult the thread-local HashKind; a short or failing read surfaces as HashError with the expected/actual byte counts.
HashKind
HashError