pub struct GitImportGraph;Implementations§
Source§impl GitImportGraph
impl GitImportGraph
Sourcepub fn convert_raw_commit(
commit: GitImportRawCommit<'_>,
tree: ContentHash,
parents: Vec<StateId>,
git_lossy: bool,
rewritten_parent: impl Fn(StateId) -> Result<Option<StateId>, HeddleError>,
) -> Result<State, HeddleError>
pub fn convert_raw_commit( commit: GitImportRawCommit<'_>, tree: ContentHash, parents: Vec<StateId>, git_lossy: bool, rewritten_parent: impl Fn(StateId) -> Result<Option<StateId>, HeddleError>, ) -> Result<State, HeddleError>
Parse a raw Git commit and feed the same converter as local ingest. Invalid identities or timestamps fail.
Sourcepub fn convert_commit(
commit: GitImportCommit<'_>,
tree: ContentHash,
parents: Vec<StateId>,
git_lossy: bool,
parent_policy: GitImportParentPolicy,
rewritten_parent: impl Fn(StateId) -> Result<Option<StateId>, HeddleError>,
) -> Result<State, HeddleError>
pub fn convert_commit( commit: GitImportCommit<'_>, tree: ContentHash, parents: Vec<StateId>, git_lossy: bool, parent_policy: GitImportParentPolicy, rewritten_parent: impl Fn(StateId) -> Result<Option<StateId>, HeddleError>, ) -> Result<State, HeddleError>
Convert one Git commit after its tree and ordered parents are mapped. A rewritten embedded note can change State identity; descendants may refer to that original ID only through the durable rewrite lookup.
Auto Trait Implementations§
impl Freeze for GitImportGraph
impl RefUnwindSafe for GitImportGraph
impl Send for GitImportGraph
impl Sync for GitImportGraph
impl Unpin for GitImportGraph
impl UnsafeUnpin for GitImportGraph
impl UnwindSafe for GitImportGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more