Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

cptx032/loc-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loc-history

This script generates a output file in CSV format with the number of LOCs (line of codes) over time.

The script go through git repository, doing many checkout, from far beggining to the more recent commit, counting the amount of LOCs of each revision.

Usage

First, you will need to clone this repository in some place, after that, you can do:

cd path-to-my-repository
git checkout master
python path-to-loc-history/main.py --format=csv --output=dataset.csv

You also can do:

python path-to-loc-history/main.py > dataset.csv

The analised files are by default python source files, if you ant the change which files will have the LOCs counted, you can use the "suffix" parameter. For example:

python path-to-loc-history/main.py --suffix="html,py" > dataset.csv

In that case, the LOCs of html and python file will be summed together.

CSV Output formats

The format is:

Date;LOCs
YYYY-MM-DD HH:mm:SSZ;NUMBER OF LOCs

For example:

Date;LOCs
2015-01-14 17:46:14-03:00;681

Releases

No releases published

Packages

 
 
 

Languages