卜部昌平のあまりreblogしないtumblr RSS

Archive

Jun
2nd
Sun
permalink
Visualizing git blame Git には git blame...

Visualizing git blame

Git には git blame というコマンドがあり(他のツールでも同様の機能は提供されている)、これを使うことでソースコードのどこを書いたのが誰か、という情報がline-by-lineで取得できる。この情報は行単位なので一次元の情報だけれど、適切な空間充填曲線に乗せることで二次元にマッピングできて、それに適当に作者ごとに色をつけるということをやってみると色々楽しい。そのスクリプトはひじょうにstraight-forwardな記述だとこういった感じになる。上の絵はruby 1.8.7に対する実行結果で、ChangeLogとかのあきらかに面白くないファイルは除外してあるからまあ、そのままの結果ではないけれど、これを見ると色々な思いが去来する。

  • Ruby 1.8.7 は多数の開発者が手を入れており、少数の支配的な貢献者といったような存在をみいだすことができない
  • しかしながら、全体がのっぺりと灰色になっているわけではなく、局所的に色がぜんぜん違う。これは、開発者ごとに専門性があり、すべてのファイルに手を入れている人がいないことを示している。
  1. abimopectore reblogged this from shyouhei
  2. aysz-blog-blog reblogged this from shyouhei
  3. glut4 reblogged this from shyouhei
  4. tipsjarsnatcher reblogged this from otakugangsta
  5. norimatsuaki reblogged this from yuruyurau
  6. yuruyurau reblogged this from thirstyear
  7. sonarghost reblogged this from otakugangsta
  8. kinryuzan-raimon reblogged this from wowgreat
  9. c-u-r-s-o-r reblogged this from otakugangsta
  10. thinktoknow reblogged this from otakugangsta
  11. cometoyourbrother reblogged this from otakugangsta
  12. oneoutofone reblogged this from wowgreat
  13. otakugangsta reblogged this from wowgreat
  14. wyattjl reblogged this from wowgreat
  15. seefeeling reblogged this from wowgreat
  16. thirstyear reblogged this from wowgreat
  17. shyouhei posted this