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).

https://github.com/irbull/gitscripts/blob/master/yearly_stats

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

You may also like...

Share this Post

Twitter1
Google+0
LinkedIn
Facebook

Tags

    4 Responses to “Looking at Git Statistics”

    1. Ian Bull says:

      Thanks for the link Ismael.

    2. 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.

    3. Ian Bull says:

      @Brian,

      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.

    4 responses so far

    Written by . Published in Categories: Planet Eclipse

    Author:
    Published:
    Jul 6th, 2011
    Follow:

    Twitter LinkedIn Google+ GitHub