Skip to main content

Module churn

Module churn 

Source
Expand description

Git churn analysis for hotspot detection.

Shells out to git log to collect per-file change history, then computes recency-weighted churn scores and trend indicators.

Structs§

ChurnResult
Result of churn analysis.
FileChurn
Per-file churn data collected from git history.
SinceDuration
Parsed duration for the --since flag.

Enums§

ChurnTrend
Churn trend indicator based on comparing recent vs older halves of the analysis period.

Functions§

analyze_churn
Analyze git churn for files in the given root directory.
is_git_repo
Check if the directory is inside a git repository.
is_shallow_clone
Check if the repository is a shallow clone.
parse_since
Parse a --since value into a git-compatible duration.