Skip to content

Run in your git directory. Great to differentiate between REAL work and FLUFF (whitelisting of files)

License

Notifications You must be signed in to change notification settings

etm/gitstats.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

gitstat.rb

Fairly simple stats for your git repos. Works with whitelists. The idea is to find out the truth: whitelist files that were written by hand 😏. gitstat.rb has no parameters, just run it anywhere in a git repo. Its results can be inspected in the repositories' root directory.

Installation

# git clone https://github.com/etm/gitstats.rb.git
# cp gitstats.rb/gitstats.rb ~/bin

Usage

All files generated by gitstats.rb will always appear in your repositories' root directory (the one that holds .git).

  1. go to the git repository you want to create stats for
  2. run gitstats.rb
  3. look at .stats
  4. delete lines from .whitelist
  5. tweak your .statsauthors:
  • remove authors to remove their contribution from stats
  • if the same author commited under different names, just indent his alias names under the name you want him to appear in the stats
  1. repeat steps 2. - 5. until you are happy

Tips

When .whitelist changes, because of new files in a new commit, a .whitelist.old is created. Compare these two to find out which files have been added.

The file .statsrun holds the hash from the commit when the stats tool has been run last. This is the basis for deciding which files are to be added to the whitelist.

Planned features

  • effort by month, weekday (priority 1)
  • create a filtered custom log as input for gource (priority 1)
  • results for date ranges (priority 2)
  • create graphs, probably with chartkick, thus result will be html+js (priority 3)

License

All code in this package is provided under the LGPL license. Please read the file COPYING.

About

Run in your git directory. Great to differentiate between REAL work and FLUFF (whitelisting of files)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages