Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

ferzerkerx/git-greenseer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-greenseer Build Status Quality Gate

This repo is archived: use https://github.com/ferzerkerx/repo-stats as a replacement

Generates html report for a given git repository. Report shows:

  • Contribution percentage by category. (shows a bar chart) alt tag

  • Contribution per developer for each category. (shows a pie chart) alt tag

Dependencies:

  • Jinja2 framework
  • Bootstrap.js
  • Charts.js

How to use it:

  • Modify setup.py and change settings
  • pip install -r requirements.txt
  • python src/main/main.py /my/git/repo/path

How to run tests:

  • cd git-greenseer
  • python -m unittest discover -s src -p '*_test.py'

How does it work:

  1. Obtains the list of files that are part of the git repository using: "git ls-files master ."
  2. For each listed file it counts the lines for each contributor using this command: "git blame HEAD --line-porcelain " + file_name + " | sed -n 's/^author //p' | sort | uniq -c | sort -rn" 3.Each file is assigned a category based on the path it has: /category1/category2/category3/ when we run it to identify category1 it will generate statistics for that category

Known Issues:

Some of the entries show something like
79 Not Committed Yet because of this: http://stackoverflow.com/questions/4638500/git-blame-showing-no-history SOLVED by adding HEAD to git blame

Backlog:

About

Static analyzer / Reporting tool for git repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published