Skip to content

Release 1.12.1

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 08:02
d6fdb22

1.12.1 - Churn Fix for File Names with Glob Characters

What's Changed

🐛 Bug Fixes

Churn

  • File names are matched literally in git calls (#127): file names containing [, * or ? were passed to git rev-list as glob patterns. A file named a[1].php also counted every commit that touched a1.php, so its timesChanged and churn were too high. git now runs with --literal-pathspecs

🔧 Maintenance

  • GitHub Actions on Node.js 24 (#126): actions/checkout, actions/upload-artifact, actions/download-artifact and codecov/codecov-action were updated because Node.js 20 is deprecated on GitHub-hosted runners. The PHAR release jobs now run on ubuntu-24.04 instead of ubuntu-latest

🧪 Testing & Quality Assurance

  • New regression test builds a temporary git repository with a[1].php and a1.php and checks that each file gets only its own commits (#127)

Changes

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:

  1. Churn Values Can Drop: Files whose names contain [, * or ? may now report fewer changes, because commits of other files are no longer counted
  2. No Breaking CLI Changes: All existing commands, options and report types remain compatible

Example Usage

bin/phpcca churn src/ --since=2025-01-01

See docs/Churn-Finding-Hotspots.md for complete documentation.

Contributors