git.repo.revs.each(…)

Git Iterator – a neat little gizmo for running code against every revision in your Git repository. Yielded this chart showing the growth of the Rails code.