Skip to main content

Module flag_age

Module flag_age 

Source
Expand description

Flag age from git history for fallow flags --retirement.

blame mode runs one git blame --porcelain per file with flag sites and asks for the lines of those sites only. The oldest commit is a lower bound on the age of the flag, because a rewrite of the line resets it. pickaxe mode also runs one git log -S<name> per flag name, which gives the first commit that added the name. Both modes count days against the AnalysisClock, so two runs over one commit give the same ages.

Results are cached under the cache directory for the current HEAD. A blame entry is also keyed by the file content, because blame reads the working tree.

Structs§

FlagAgeOutcome
What a flag-age measurement did.
FlagAgeRequest
Inputs of one flag-age measurement.
PickaxeProgress
Pickaxe progress: flag names read so far, and the flag names to read.

Functions§

apply_flag_ages
Fill the age fields of rows from git history.