Metadata-Version: 2.1
Name: git-commits-graph
Version: 0.2.1
Summary: Display graph of changes in number of lines in project or changed lines
License: MIT
Author: Krystian Safjan
Author-email: ksafjan@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: GitPython (>=3.1.27,<4.0.0)
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: matplotlib (>=3.7.1,<4.0.0)
Requires-Dist: pandas (>=1.5.3,<2.0.0)
Requires-Dist: plotly (>=5.14.0,<6.0.0)
Requires-Dist: tqdm (>=4.65.0,<5.0.0)
Description-Content-Type: text/markdown

# Git commits graph
![](https://img.shields.io/pypi/v/git-commits-graph.svg)
![](https://img.shields.io/pypi/pyversions/git-commits-graph.svg)
![](https://img.shields.io/pypi/l/fgit-commits-graph.svg)
![](https://img.shields.io/pypi/dm/git-commits-graph.svg)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/izikeros/git-commits-graph/main.svg)](https://results.pre-commit.ci/latest/github/izikeros/git-commits-graph/main)
[![Maintainability](https://api.codeclimate.com/v1/badges/081a20bb8a5201cd8faf/maintainability)](https://codeclimate.com/github/izikeros/git-commits-graph/maintainability)

Display plot of changes in repo - count of lines or changed lines

## Installation

Use pip to install the package:
```sh
$ pip3 install git-commits-graph
```
or pipx to install in isolated environment:
```sh
$ pipx install git-commits-graph
```

## Usage
plot timeline of both added and removed lines in your repo:
```sh
$ git-commits-graph your-repo-path -c
```
![changes](https://github.com/izikeros/git-commits-graph/raw/main/changes.jpg)

plot lines count evolution in time.
```shell
$ git-commits-graph your-repo-path -t
```
![lines](https://github.com/izikeros/git-commits-graph/raw/main/lines.jpg)
to see all options:
```
$ git-commits-graph --help
```

```
Usage: git-commits-graph [OPTIONS] GIT_DIR

  Plot git commits timeline main function.

Options:
  -b, --branch TEXT               git repository branch to browse.
  -s, --style TEXT                matplotlib plotting style to use.
  -c, --changes                   plot timeline of both added and removed
                                  lines.
  -t, --total-lines               plot lines count time evolution.
  -g, --aggregate-by TEXT         aggregate by: Y - year, M - month, W - week,
                                  D - day
  -l, --log-scale                 aggregate by day
  -a, --list-available-plot-styles
                                  list available plot styles and exit.
  -e, --engine TEXT               plotting engine to use (matplitlib | plotly)
  -o, --output-file TEXT          output file name (for plotly backend)
  --help                          Show this message and exit.

```


## Related Projects
[danielfleischer/git-commits-lines-graph](https://github.com/danielfleischer/git-commits-lines-graph) - A small python script to visualize the number of lines in a project, as a function of time.

## License

[MIT](https://izikeros.mit-license.org/) © [Krystian Safjan](https://safjan.com).

