https://github.com/mcharleb/gittagstats
https://github.com/mcharleb/gittagstats
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mcharleb/gittagstats
- Owner: mcharleb
- License: other
- Created: 2015-08-04T14:08:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-08T05:03:30.000Z (over 9 years ago)
- Last Synced: 2024-08-14T07:10:03.357Z (8 months ago)
- Language: Python
- Size: 113 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - mcharleb/gittagstats - (Python)
README
# gittagstats
Generate statistics report from a set of tags for a git repository```python
Add this as a git submodule to your project.
git submodule add https://github.com/mcharleb/gittagstats.gitSample usage:
import os
import git
from gittagstats.gittagstats import *repo = git.Repo("/path/to/linux/kernel")
tags = ["v3.17", "v3.18", "v3.19", "v4.0", "v4.1"]# Only consider files in ./arch/arm
file_list.append('arch/arm')# Define the groups to sort using
me = Group("Personal Group", ["[email protected]", "[email protected]"])
somecompany = Group("Some Company", ["@somecompany.org"])
others = Group("Others", [], me.email + somecompany.email)
groups = [ me, somecompany, others ]report = Report(repo, tags, file_list, groups)
report.generate()
report.show_table()
report.show_commits()
```