pub trait ObjectIdExt: Sealed {
    fn ancestors<Find, E>(
        self,
        find: Find
    ) -> Ancestors<Find, fn(_: &oid) -> bool, State>
    where
        Find: for<'a> FnMut(&oid, &'a mut Vec<u8>) -> Result<CommitRefIter<'a>, E>,
        E: Error + Send + Sync + 'static
; fn attach(self, repo: &Repository) -> Id<'_>; }
Expand description

An extension trait to add functionality to ObjectIds.

Required Methods

Create an iterator over the ancestry of the commits reachable from this id, which must be a commit.

Infuse this object id repo access.

Implementors