pub struct AttributionEstimate {
pub is_git: bool,
pub blameable_files: u64,
pub commit_count: u64,
pub severity: AttributionSeverity,
pub recommend_attribution: bool,
pub estimated_seconds: u64,
pub submodule_count: u64,
pub combined_commit_count: u64,
}Expand description
A cheap up-front estimate of the attribution (git blame) cost for a repository, computed from
git metadata alone (no filesystem walk, no file reads) so it can run while the user is still
configuring the scan. Self::blameable_files counts tracked files — including submodule
working trees via --recurse-submodules — whose name maps to a supported language, which is
exactly the set the blame pass would process.
Fields§
§is_git: boolWhether the path is a git repository at all (attribution is a no-op otherwise).
blameable_files: u64Number of tracked, language-detected files that would be blamed (submodules included).
commit_count: u64Total commit depth of HEAD — a rough proxy for how much history each blame walks.
severity: AttributionSeverityBucketed severity used to drive the UI warning and the auto-default.
recommend_attribution: boolWhether attribution should default to on for this repo (false only for Heavy).
estimated_seconds: u64Rough wall-clock estimate for the blame pass, in seconds (order-of-magnitude only).
submodule_count: u64Number of git submodules declared in the super-repo’s .gitmodules (0 when none).
combined_commit_count: u64Total commit depth across the super-repo and every submodule combined — i.e.
Self::commit_count plus the sum of each submodule’s own HEAD depth.
Trait Implementations§
Source§impl Clone for AttributionEstimate
impl Clone for AttributionEstimate
Source§fn clone(&self) -> AttributionEstimate
fn clone(&self) -> AttributionEstimate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more