Repository navigation
1.12.1 - Churn Fix for File Names with Glob Characters
What's Changed
🐛 Bug Fixes
Churn
- File names are matched literally in
gitcalls (#127): file names containing[,*or?were passed togit rev-listas glob patterns. A file nameda[1].phpalso counted every commit that toucheda1.php, so itstimesChangedand churn were too high.gitnow runs with--literal-pathspecs
🔧 Maintenance
- GitHub Actions on Node.js 24 (#126):
actions/checkout,actions/upload-artifact,actions/download-artifactandcodecov/codecov-actionwere updated because Node.js 20 is deprecated on GitHub-hosted runners. The PHAR release jobs now run onubuntu-24.04instead ofubuntu-latest
🧪 Testing & Quality Assurance
- New regression test builds a temporary git repository with
a[1].phpanda1.phpand checks that each file gets only its own commits (#127)
Changes
- Update GitHub Actions to Node.js 24 and pin the release runner by @floriankraemer in #126
- fix(churn): match file names literally in git pathspecs by @floriankraemer in #127
Full Changelog: 1.12.0...1.12.1
Key Highlights
- Correct Churn for Every File Name: Files with
[,*or?in their names no longer pick up commits of other files
Migration Guide
If you're upgrading from 1.12.0, please note:
- Churn Values Can Drop: Files whose names contain
[,*or?may now report fewer changes, because commits of other files are no longer counted - No Breaking CLI Changes: All existing commands, options and report types remain compatible
Example Usage
bin/phpcca churn src/ --since=2025-01-01See docs/Churn-Finding-Hotspots.md for complete documentation.