Use git commit history to find project hot-spots?
git
Solution
You can use this one-liner to print the top 100 most frequently changed files:
git log --pretty=format: --name-only | sed '/^\s*$/d' | sort | uniq -c | sort -rg | head -100
Problem
I'm joining a new project with a long and storied commit history, and I'd like to use that history to show me the hot-spots in the project: the files that have been most commonly (and most recently) edited. Ideally, I'd like to avoid writing more than a few lines of script (ruby, python, javascript; doesn't matter which). Anybody know of a one-liner that can rank git project files according to their activity in a commit history?