Project

git-graph

0.0
No commit activity in last 3 years
No release in over 3 years
Make graphs from your git history
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Make graphs from your git history

Install

gem install git-graph

Usage

# number of lines in the readme as csv
git-graph --interval day --output csv "cat Readme.md | wc -l"
2013-02-01,24
2013-01-31,24
2013-01-31,22
...
# number of lines in the readme as line-chart (via google charts)
git-graph --interval week --output chart "wc -l Readme.md"

Chart

# number of gems the project depends on
git-graph --interval year --output chart "cat Gemfile.lock | grep DEPENDENCIES -A 999 | wc -l"

# number of lines of code
git-graph --interval year --output chart "find . -name '*.rb' | xargs wc -l | tail -1"

# application startup time
git-graph --interval year --bundle --output chart '(time -p bundle exec rails runner) 2>&1 | grep real | tail -1 | cut -d " " -f 2'

If the script fails the previous output is assumed.

TODO

  • interval month -> first of every month ?
  • interval year -> same day on every year (leap-year adjustment)
  • refactor into a class
  • spark chart ?

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status