MCPcopy Create free account
hub / github.com/git/git / empty_blob

Method empty_blob

src/hash.rs:310–315  ·  view source on GitHub ↗

The object ID representing the empty blob.

(self)

Source from the content-addressed store, hash-verified

308
309 /// The object ID representing the empty blob.
310 pub const fn empty_blob(self) -> &'static ObjectID {
311 match self {
312 HashAlgorithm::SHA1 => &Self::SHA1_EMPTY_BLOB,
313 HashAlgorithm::SHA256 => &Self::SHA256_EMPTY_BLOB,
314 }
315 }
316
317 /// The object ID representing the empty tree.
318 pub const fn empty_tree(self) -> &'static ObjectID {

Callers 5

newMethod · 0.80
hasher_works_correctlyFunction · 0.80

Calls

no outgoing calls

Tested by 4

hasher_works_correctlyFunction · 0.64