pub struct GitTemporalIndex {
pub files: HashMap<String, GitFileHistory>,
pub stats: GitTemporalStats,
pub state: GitTemporalState,
}Expand description
The full temporal index — a side-table that lives parallel to the
main LiveIndex on SharedIndexHandle.
Fields§
§files: HashMap<String, GitFileHistory>Per-file temporal metadata, keyed by relative path (forward-slash
normalized, same key space as LiveIndex::files).
stats: GitTemporalStatsRepo-wide summary statistics.
state: GitTemporalStateCurrent state of the temporal index.
Implementations§
Source§impl GitTemporalIndex
impl GitTemporalIndex
Construct an unavailable temporal index with a reason.
Sourcepub fn compute(repo_root: &Path) -> Self
pub fn compute(repo_root: &Path) -> Self
Compute the full temporal index from git history.
Uses libgit2 via crate::git::GitRepo to walk the commit log
and build per-file metrics, co-change relationships, and repo-wide
stats. Designed to run on a blocking thread.
Trait Implementations§
Source§impl Clone for GitTemporalIndex
impl Clone for GitTemporalIndex
Source§fn clone(&self) -> GitTemporalIndex
fn clone(&self) -> GitTemporalIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GitTemporalIndex
impl RefUnwindSafe for GitTemporalIndex
impl Send for GitTemporalIndex
impl Sync for GitTemporalIndex
impl Unpin for GitTemporalIndex
impl UnsafeUnpin for GitTemporalIndex
impl UnwindSafe for GitTemporalIndex
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more