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

Method empty_tree

src/hash.rs:318–323  ·  view source on GitHub ↗

The object ID representing the empty tree.

(self)

Source from the content-addressed store, hash-verified

316
317 /// The object ID representing the empty tree.
318 pub const fn empty_tree(self) -> &'static ObjectID {
319 match self {
320 HashAlgorithm::SHA1 => &Self::SHA1_EMPTY_TREE,
321 HashAlgorithm::SHA256 => &Self::SHA256_EMPTY_TREE,
322 }
323 }
324
325 /// The object ID which is all zeros.
326 pub const fn null_oid(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