Why would I need that?
Why I find that useful? It often helps me recognizing classes that potentially have too much responsibility in the project without even looking into details - those tend to be changed more often than others (check Large Class and Divergent Change code smells).
// Note: this is just an indicator that may lead you towards conclusions mentioned above, not necesarily a prophecy.
git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10
git log --pretty=format: --name-only | Group-Object -NoElement | Sort-Object -Property Count -Descending | Select-Object -First 10 | Format-Table -AutoSize
Hope it's going to be useful for you as well.
Leave a Reply