リポジトリ内のファイルごとのcommit頻度を可視化出来たらよく改修されてるポイントが分かってなんか良いかなとか思ったけどそういうツールあるかな
— ごまちゃんさん (@gomachan46) January 29, 2019
というツイートを見かけて、ブログの下書きに眠っていたこの記事を公開した。
$ git log --name-only --oneline | grep -v ' ' | sort | uniq -c | sort -n (...略) 10 .rubocop_todo.yml 10 README.md 10 app/models/authentication.rb 11 app/views/dashboard/show.html.slim 11 config/environments/production.rb 13 config/application.rb 13 spec/rails_helper.rb 14 circle.yml 14 config/initializers/omniauth.rb 14 db/schema.rb 24 .rubocop.yml 31 config/routes.rb 68 Gemfile 132 Gemfile.lock
可視化はしてないけど、どのファイルが変更されるのかは分かる。
上の出力で「bundle updateしてるけど、機能作ってない個人Railsアプリ」ってのが分かる。