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 object read/parse errors when commit_oid is missing or not a commit.