Skip to main content

read_sha

Function read_sha 

Source
pub fn read_sha(file: &mut impl Read) -> Result<ObjectHash>
Expand description

Read an object hash from the given reader using the thread-local HashKind.

Legacy entry point; delegates to ObjectHash::from_stream, whose read_exact-based error surface is unchanged.