Use git commit history to find project hot-spots? -
this question has answer here:
- finding changed files in git 8 answers
i'm joining new project long , storied commit history, , i'd use history show me hot-spots in project: files have been commonly (and recently) edited.
ideally, i'd avoid writing more few lines of script (ruby, python, javascript; doesn't matter which).
anybody know of one-liner can rank git project files according activity in commit history?
you can use one-liner print top 100 changed files:
git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -100
Comments
Post a Comment