Skip to main content

tree_oid_of_commit

Function tree_oid_of_commit 

Source
pub fn tree_oid_of_commit(odb: &Odb, commit_oid: &ObjectId) -> Result<ObjectId>
Expand description

Return the tree OID stored in a commit object.

ยงErrors

Returns Error::InvalidRef when commit_oid is not a commit, and object read/parse errors when it is missing or malformed.