Skip to content

eggplants/gitstats

 
 

Repository files navigation

gitstats for python 3

PyPI ghcr Maintainability pre-commit.ci status

  • Git history statistics generator
  • Forked from KaivnD/gitstats for support python3

Install

pip install git+https://github.com/eggplants/gitstats
# OR
pip install gitstats-forked

Usage

$ gitstats -h
usage: gitstats [-h] [-c K=V] [-V] gitpath [gitpath ...] outputpath

Git history statistics generator

positional arguments:
  gitpath               repo path to look up
  outputpath            dir path to output result

options:
  -h, --help            show this help message and exit
  -c K=V, --config K=V  override configuration value (default: None)
  -V, --version         show program's version number and exit

Default config values:
  - max_domains=10
  - max_ext_length=10
  - style='gitstats.css'
  - max_authors=20
  - authors_top=5
  - commit_begin=''
  - commit_end='HEAD'
  - linear_linestats=1
  - project_name=''
  - processes=8
  - start_date=''

Please see the manual page for more details.

For Example

gitstats -c start_date=2021-07-14 <gitdir> <outputdir>