pub struct ChangeRecord<'a> {
pub churn: u64,
pub commit_time: i64,
pub in_recent: bool,
pub class: Classification,
pub authors: &'a [AuthorId],
pub change_entropy: f64,
}Available on crate feature
vcs-git only.Expand description
One commit’s effect on one file, as handed to Accumulator::record.
Fields§
§churn: u64Added + deleted lines this commit applied to the file.
commit_time: i64Commit timestamp (Unix seconds, clamped to now for skew).
in_recent: boolWhether the commit falls inside the recent window.
class: ClassificationKeyword classification of the commit message.
Non-empty, bot-filtered participant identities for this commit.
change_entropy: f64This commit’s change-entropy contribution to this file: the
file’s churn share of the commit times the commit’s churn-
distribution entropy (pᵢ·H), in bits. Zero for a single-file
commit (H = 0) or a zero-churn touch (pᵢ = 0). The backend
computes it once the whole commit’s churn distribution is known.
Auto Trait Implementations§
impl<'a> Freeze for ChangeRecord<'a>
impl<'a> RefUnwindSafe for ChangeRecord<'a>
impl<'a> Send for ChangeRecord<'a>
impl<'a> Sync for ChangeRecord<'a>
impl<'a> Unpin for ChangeRecord<'a>
impl<'a> UnsafeUnpin for ChangeRecord<'a>
impl<'a> UnwindSafe for ChangeRecord<'a>
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