Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-graph

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-graph

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 24 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc