Git Log Heatmap
Use git log to create a heatmap of the files that have been changed the most frequently within a repository. This is useful to identify the files that most...
Use git log to create a heatmap of the files that have been changed the most frequently within a repository.
This is useful to identify the files that most likely need a closer look.
For example, the file contains too much logic and should be split up into multiple files, it contains hot code paths that change frequently, or maybe it's a file with a history of many fixes.
The following git log command returns a list of files (excluding json and lock files) that have been changed within the last 6 months, sorted by the number of changes.
--6.--=---`|Where-Object{}`|?{$_-notmatch}`|Sort-Object`|Group-Object`|Sort-Object--`|Select-Object-,-25
git--since=6.months.ago--pretty=format:--name-only\|grep-v\|grep-v\|sort\|uniq-c\|sort-rn\|head-n25
Feel free to update this developer bit on GitHub, thanks in advance!