https://github.com/adfinis/git-runstats
Display git contribution statistics (insertions + deletions)
https://github.com/adfinis/git-runstats
developer-tools git statistics
Last synced: about 1 month ago
JSON representation
Display git contribution statistics (insertions + deletions)
- Host: GitHub
- URL: https://github.com/adfinis/git-runstats
- Owner: adfinis
- License: agpl-3.0
- Created: 2020-06-05T15:08:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T15:09:28.000Z (almost 6 years ago)
- Last Synced: 2026-01-14T11:23:48.993Z (5 months ago)
- Topics: developer-tools, git, statistics
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
git-runstats
============
Display git contribution statistics (insertions + deletions)
[](https://raw.githubusercontent.com/adfinis-sygroup/git-runstats/master/runstats_demo.svg)
Answers the questions: "Who dunnit?", "Who can I ask?"
Usage
-----
```
Usage: git-runstats [OPTIONS] [GITARGS]...
Most arguments of `git log` will work as GITARGS, but do not change the
output-format. Use -- to separate GITARGS.
Options:
-l, --limit INTEGER Number of commits to read
--tty / --no-tty Enable tty
```
Live-stats
```bash
git runstats
```
Stats for `README.md`
```bash
git runstats README.md
```
Display help
```bash
git-runstats --help
```
Non-live stats with limit
```bash
git runstats -l 1000 | less
```
Non-live stats reversed
```bash
git runstats -l 1000 | head -n -1 | sort -n
```
Show stats in branch
```bash
git runstats master..my_branch
```
Show stats in current branch
```bash
git runstats master..
```
Show stats from 2019
```bash
git runstats -- --since=2019-01-01 --until=2019-12-31
```
Who knows most about the rust alpine linux package
```bash
cd aports
git runstats community/rust
```
Install
-------
```bash
pip install git-runstats
```
Why
---
In comparison to shortlog runstats gives immediate feedback and counts changes
instead of commits. Press Ctrl-C once you have enough information. Shortlog can
also be very wrong:
```bash
$> cd linux
$> git shortlog -s -n net/802/ | head -n 10
11 Stephen Hemminger
10 Arnaldo Carvalho de Melo
9 Eric Dumazet
6 Eric W. Biederman
5 Alexey Dobriyan
5 David S. Miller
4 Paul Gortmaker
4 David Ward
3 Linus Torvalds
3 Adrian Bunk
```
versus
```bash
$> cd linux
$> git runstats net/802/ | head -n 10
1556 Linus Torvalds
931 David Ward
749 Patrick McHardy
104 Stephen Hemminger
98 Eric Dumazet
65 Pavel Emelyanov
51 Thomas Gleixner
47 Johannes Berg
40 Alexey Dobriyan
30 Joe Perches
```