Skip to main content

key_to_oid

Function key_to_oid 

Source
pub fn key_to_oid(key: &Key) -> Option<ObjectId>
Expand description

The object id behind a family key — Some only for a GitObjectSha1 key (the family the front serves; ADR-019 §1’s loose-form keying, alkblobs ADR-018); any other algorithm is None (the 0x01/0x02 blob members and the 0x04 member are not oid-addressable from here).