Skip to content

Uses cloc across different versions of a git repository to produce a graph of lines of code per langage per release

Notifications You must be signed in to change notification settings

mfoo/cloc-evolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cloc-evolution is a tool for running http://cloc.sourceforge.net/ across different tagged release versions in a git repository. Given a target path pointing to a git repository, it uses https://github.com/libgit2/git2go to read the tags in the repository. It assumes all tags contain a http://semver.org/ versioning string (i.e ..) somewhere inside them. It will then sort these by version number and use git2go to check out each tag in turn, whereby it runs cloc on them. Once it has iterated over all tags it will produce a temporary file containing an HTML output with a http://highcharts.com/ chart showing the evolution of the number of lines of code for different languages across version changes.

Note: This will destroy any local changes in the git repository. Use at your own risk.

This project is my first time using golang. There may be issues or improvements that can be made. Pull requests or suggestions are welcome.

About

Uses cloc across different versions of a git repository to produce a graph of lines of code per langage per release

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages