Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

vmiklos/gitstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple statistics generator for git

Status

This project was originally a port of my darcsstats project to git. It worth to mention that it was originally inspired by Juli Mallett’s cvstat.

It supports all the features which are provided by cvstat, plus a number of extras. See the 'What works' section for a list of them.

If you want something more complex, then try out gitstat. It is a mix of php and perl, requires mysql, etc. Obviously it has more features, but you may say that it’s bloated. Then gitstats is for you.

Note
These days I usually just use git shortlog -s -n if I want to get a toplist, so I no longer actively maintain this project. Patches are still welcome.

How to set it up

You need to have a copy of config.py in the current dir. Probably you want to have a config for each project to set the aliases and ignores. Here is the format of ignores:

	ignore = ['A B <foo@server.com>', 'C D <bar@server.com>']

If you know Python, this will be familiar to you.

The aliases directive is a Python dictionary:

	aliases = {
			'X Y <old@server.com>': 'X Y <new@server.com>'
			}

Running it

Then all you need is to run gitstats:

$ python /path/to/gitstats.py ~/git/myrepo.git output.html

What works

  • Features supported by cvstat.

  • Ignore support. This is handy when you import a cvs project to git and there were an anonymous user in cvs.

  • Alias support, so that your stats are not lost when you change your mail address.

  • Total number of commits.

What needs to be done (aka. TODO)

  • None at this time.

I would like to have support for …​

If something does not work and it’s not in the TODO section, then please contact me!

Known bugs

  • None at this time.

Samples

You can reach a sample here.

Download

From GitHub.

About

Simple statistics generator for git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages