andymeneely / httpd-history

An historical analysis of HTTPD and its vulnerabilities
3 stars 3 forks source link

Get LOC and SLOC for a file at every revision #36

Closed andymeneely closed 11 years ago

andymeneely commented 11 years ago

We need a script that does this:

If it's slow, only go with .c and .h files.

Parse that data file and update the GitLogFiles table with a new field for all of these.

In the end, we need the Churn / LOC. SLOC we might need someday, but not for this particular study (yet).

andymeneely commented 11 years ago

These will be helpful:

https://github.com/apmeneel/developer-activity-metrics/tree/master/src/main/sh

And particularly this one:

https://github.com/apmeneel/developer-activity-metrics/blob/master/src/main/sh/git-interaction-churn.rb

And this one:

https://github.com/apmeneel/developer-activity-metrics/blob/master/src/main/sh/git-int-churn-all.sh

andymeneely commented 11 years ago

Where's the commit?

andymeneely commented 11 years ago

Ok - got the code now. I've done some refactoring. See the upcoming commit.