Trait git_repository::prelude::ObjectIdExt
source · [−]pub trait ObjectIdExt: Sealed {
fn ancestors<Find>(
self,
find: Find
) -> Ancestors<Find, fn(_: &oid) -> bool, State>
where
Find: for<'a> FnMut(&oid, &'a mut Vec<u8>) -> Option<CommitRefIter<'a>>;
fn attach(self, handle: &Handle) -> Oid<'_>;
}
Expand description
An extension trait to add functionality to ObjectId
s.
Required methods
Create an iterator over the ancestry of the commits reachable from this id, which must be a commit.
Infuse this object id with an easy::Handle
.