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

Method null_oid

src/hash.rs:326–331  ·  view source on GitHub ↗

The object ID which is all zeros.

(self)

Source from the content-addressed store, hash-verified

324
325 /// The object ID which is all zeros.
326 pub const fn null_oid(self) -> &'static ObjectID {
327 match self {
328 HashAlgorithm::SHA1 => &Self::SHA1_NULL_OID,
329 HashAlgorithm::SHA256 => &Self::SHA256_NULL_OID,
330 }
331 }
332
333 /// A pointer to the C `struct git_hash_algo` for interoperability with C.
334 pub fn hash_algo_ptr(self) -> *const c_void {

Callers 4

newMethod · 0.80

Calls

no outgoing calls

Tested by 3