Use git commit history to find project hot-spots? -


this question has answer here:

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

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -