Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 9696209926
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (21 sloc) 1.8 KB

CSharp Temporal Method Analyzer

for git repositories

Comes with a "build it yourself" policy. It uses that NuGet thing to restore packages. Specify the path to git in the app.config, thanks.

Usage sharp temporal gitalyzer:

stgalyzer <path to your local git file repo>

Spits out a .csv file under .\analysis for each commit containing all csharp methods at that point in the working copy in the following format:


Right now, it's hard-coded to do this for the 'master' branch.

Usage of change over time:

spitcot <path to the .\analysis folder>

Spits out a .csv file under . containing the number of methods added, removed, modified on a date by date basis. The format used is:


Use a spreadsheet to graph the add/modify/remove ratio over time.

What can I do with these .csv files ?

Given that I don't know what analysis you are interested in, it requires you to write another piece of code, one that reads and analyzes the .csv files. Things you could do:

  • read and compare each commit's .csv with the previous one to detect the methods that were added, removed, modified (spitcot).
  • rank methods/types/projects/areas by their size over time.
  • produce another intermediate format that suits your needs.
  • you might pick up some ideas here.


Unstable! Only do this on a throw-away copy of your repo. If shit hits the fan, you're on your own. I'm not liable and have a good lawyer ;-) This is a sample, not a project/product. You're supposed to change the code to make it do what you want. Duh!!

Jump to Line
Something went wrong with that request. Please try again.