/// Returns an iterator of all the commits on this branch. Will return the newest commit first.
Returns an iterator of all the commits on this branch. Will return the newest commit first.
Returns an iterator of all the commits on this branch . Will return the newest commit first .
pub fn commits(&'a self) -> Result<impl Iterator<Item = Commit<'a>>, Error> {
        let commit = self.branch.get().peel_to_commit()?;
        Ok(BranchCommitIterator {
            commit: Some(commit),
        })
    }
pub fn commits ( & ' a self ) -> Result < impl Iterator < Item = Commit < ' a > > , Error > { let commit = self . branch . get ( ) . peel_to_commit ( ) ? ; Ok ( BranchCommitIterator { commit : Some ( commit ) , } ) }
Returns an iterator of all the commits on this branch.
Returns an iterator of all the commits on this branch .
&'a self