|
|
vor 2 Monaten | |
|---|---|---|
| __pycache__ | vor 2 Monaten | |
| .gitignore | vor 2 Monaten | |
| README.md | vor 2 Monaten | |
| arrow-down.gif | vor 17 Jahren | |
| arrow-none.gif | vor 17 Jahren | |
| arrow-up.gif | vor 17 Jahren | |
| gitstats.css | vor 2 Monaten | |
| gitstats.py | vor 2 Monaten | |
| requirements.txt | vor 2 Monaten | |
| sortable.js | vor 2 Monaten |
gitstats3 is a git history statistics generator, ported from Python 2 to Python 3.
This project allows you to analyze and visualize various statistics from a git repository, such as commit activity, author contributions, and more. It is a fork of the original gitstats project, updated to work with modern Python environments.
Clone the repository:
git clone https://github.com/lechibang-1512/gitstats3.git
cd gitstats3
Install required dependencies (if any):
pip install -r requirements.txt
To generate statistics for a git repository:
python gitstats <path-to-git-repo> <output-directory>
Example:
python gitstats /path/to/your/repo /path/to/output
To generate statistics for a git repository:
```sh
python gitstats <path-to-git-repo> <output-directory>
Common options:
--debug: print detailed command traces and timings (useful for diagnosing issues).--verbose: show progress and executed git/gnuplot commands.--processes N: run N worker processes when collecting data (default depends on your machine).Example:
python gitstats /path/to/your/repo /path/to/output --verbose --processes 4
This will analyze the git repository and generate an HTML report (and optional PDF) in the output directory.
Required system dependencies and notes:
.dat and .plot files will still be produced but PNG graphs won't be generated.fpdf usage can remove warnings.Install Python dependencies (if provided):
pip install -r requirements.txt
On Debian/Ubuntu you can install system deps with:
sudo apt-get update && sudo apt-get install git gnuplot
Generated output (example files written to the output directory):
index.html: main HTML report with links to charts and pages.authors.html, lines.html, files.html, tags.html, activity.html: detail pages for each statistic.*.dat, *.plot: raw data and gnuplot scripts used to generate images.*.png: chart images produced by gnuplot (if available).gitstats_*.pdf: optional PDF summary produced via fpdf.Troubleshooting tips:
gnuplot is installed and available in your PATH.--debug to see the exact git and gnuplot commands being executed; this helps reproduce and fix issues.fpdf package or updating the PDF-generation code to use the current API.