use crate::errors::VctrlError;
pub type RevWalkIterator<'a, T> = Box<dyn Iterator<Item = Result<T, VctrlError>> + Send + 'a>;
pub trait RevWalk: Send + Sync {
type CommitId: Send + Sync;
fn walk(
&self,
start: &Self::CommitId,
) -> Result<RevWalkIterator<'_, Self::CommitId>, VctrlError>;
}