Code Monkey home page Code Monkey logo

git-multipunchcard's Introduction

INTRODUCTION

This is a small script to visualize the time when commits are committed in a set of git repositories. The idea is stolen from Github's punchcard picture (Kudos to Github)!

If you want to visualize a single git repository instead, you should have a look at the original punchcard program instead.

SCREENSHOT

Here's the generated picture from MongoDB project:

MongoDB Punchcard

WHY IS IT INTERESTING

It shows how a set of repositories are developed in developer's time. If you work on multiple projects, whether it is for work or in your spare time, you can determine when you're working.

As I see it, I can get a simple clue whether a project is a spare time project or this project is totally under a company's control, thus resulting in commits from 8AM to 6PM, Monday to Friday.

PREREQUISITE

  • python (of course!)
  • pycairo module
  • git

Then you're free to go!

USAGE

  • cp git-multipunchcard /usr/local/bin (or somewhere else on your $PATH)
  • make sure that /usr/local/bin is in your $PATH environment variable.
  • invoke git multipunchcard

If you want a different name, then simply invoke git multipunchcard file=<another-name.png>. The default width of a picture is 1100px. If you'd like to have a higher resolution, you can run git multipunchcard file=<another-name.png> width=<new-width>.

If you would like to filter by a particular author then do so as follows. (all parameters are available) git multipunchcard -- --author=<authorname>

The image gets scaled automatically.

The easiest way to work on a set of projects is to make a new directory, then clone all the projects to that directory. What I tend to do is something like this:

mkdir -p aggregate-data
cd aggregate-data
for project in a b c; do git clone "[email protected]:orgname/$project"; done
git multipunchcard file=jean.png -- --all --since='1 year ago' --author=jeannikl

This will collect all the commits I've authored in all branches the last year and make a punchcard for them.

LICENSE

This project is under public domain, you can do whatever you want ;) However, if you're improving this tool a bit, you can freely fork it and then send me back a pull request. I would be very glad to integrate it.

git-multipunchcard's People

Contributors

pentix avatar hypirion avatar

Stargazers

 avatar justthefracts avatar Norman Sue avatar Leonid Kovnatskiy avatar Gary Alexander avatar Hans Kristian Flaatten avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.