weavatrix-git 0.3.1

Fast, bounded, evidence-carrying Git reader with an optional read-only MCP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
        })
    }
}