Skip to main content

Module churn

Module churn 

Source
Expand description

Git churn helpers and types exposed through the engine boundary.

Structs§

AuthorContribution
Per-author commit aggregation for a single file.
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 under root.
analyze_churn_cached
Analyze churn with disk caching.
analyze_churn_from_file
Analyze churn from a normalized fallow-churn/v1 file.
is_git_repo
Check whether root is inside a git repository.
parse_since
Parse a --since value into a git-compatible duration.
set_spawn_hook
Install a spawn hook for git churn analysis.

Type Aliases§

ChurnSpawnHook
Function pointer signature used to intercept git churn subprocesses.