use crate::{HistoryOptions, ObjectId, Repository, Result};
impl Repository {
pub(crate) fn graph_first_parent_ids(
&self,
start: ObjectId,
options: HistoryOptions,
) -> Result<Option<Vec<ObjectId>>> {
self.graph.as_ref().map_or(Ok(None), |graph| {
graph.first_parent_ids(start, options, self.limits.max_history_commits)
})
}
}