MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sha1

Function sha1

atomic-core/src/change/classification.rs:337–339  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

335 use super::*;
336
337 fn sha1(byte: u8) -> GitObjectId {
338 GitObjectId::new(GitHashAlgorithm::Sha1, vec![byte; 20]).unwrap()
339 }
340
341 fn sha256(byte: u8) -> GitObjectId {
342 GitObjectId::new(GitHashAlgorithm::Sha256, vec![byte; 32]).unwrap()

Calls 1

unwrapMethod · 0.45