Looking at Git Statistics

Looking at Git Statistics

It’s interesting to see how Eclipse projects change over time.  As projects ramp up, hit heavy development and finally start to mature, the flurry of activity changes.  Git makes it very easy to pull out this information. I wrote a small script that shows the number of commits per person, per year (and the total number of commits for that year).  I defined a year to basically be an Eclipse release (July 1 – June 30).

While you shouldn’t read much into any one year (or one person) — and you certainly can’t compare projects with this data — the trends are where the interesting information lies.

Feel free to try it out yourself. Simply put the script in the root of a git repository.  The script goes back as far as Eclipse 3.1 (feel free to add more years).


Note: This is nothing new. You could also use Dash or look at http://www.ohloh.net/.  These scripts just use git log.

  • Posted at 9:14 pm, July 6, 2011

    There’s also http://gitstats.sourceforge.net/


  • Posted at 3:16 pm, July 7, 2011

    All of these stats attribute patches from non-committers to whomever actually committed the patch to the tree. One nice thing about moving to Git is that we can provide attribution to the author of patches in a parseable way.

  • Ian Bull
    Posted at 3:26 pm, July 8, 2011


    I’m pretty sure the little hacklet I wrote attributes it to the author, not the committer. For example, if I run it on egit I see I’ve contributed 3 patches (and I’m not an egit committer). Of course, for old projects (converted from CVS) we don’t have the contributor information.

    I’m not sure about the scripts that Ismael mentioned.