#git #stats #author #aggregated #commit #revision #shortlog

app git-stats

A tool for getting aggregated shortlog stats

17 releases

new 0.1.16 May 3, 2024
0.1.15 Apr 26, 2024
0.1.9 Jan 18, 2024
0.1.8 Jun 26, 2023
0.1.4 Oct 29, 2022

#186 in Command line utilities

Download history 12/week @ 2024-01-18 5/week @ 2024-02-22 3/week @ 2024-02-29 54/week @ 2024-03-28 35/week @ 2024-04-04 401/week @ 2024-04-18 329/week @ 2024-04-25

788 downloads per month

BlueOak-1.0.0

16KB
231 lines

📊
git stats

A tool for getting aggregated shortlog stats.


Git Stats parses shortlog information to get stats about the files changed, additions, and deletions. For example:

$ git stats -r origin..HEAD
 Author           Commits  Changed Files  Insertions  Deletions  Net Δ
 Luke Hsiao            67            117       +2616      -1126  +1490
 dependabot[bot]       31             62        +203       -267    -64
 Total                 98            179       +2819      -1393  +1426

 Reviewer/Tester  Commits
 Luke Hsiao             1

Install

This is a glorified shell script. As such, it expects that you have git installed on your machine and in your $PATH.

From crates.io

cargo install git-stats --locked

Usage

A tool for getting aggregated shortlog stats

Usage: git-stats [OPTIONS] [revision-range]

Arguments:
  [revision-range]  Show only commits in the specified revision range [default: HEAD]

Options:
  -e, --email            Show the email address of each author
  -r, --reviews          Show who reviewed/tested commits based on `Acked-by`, `Tested-by`, and `Reviewed-by` git trailers
  -s, --sort <SORT>      What column to sort by [default: commits] [possible values: author, commits, files, insertions, deletions, net]
      --reverse          Whether to reverse the sorting from descending to ascending
  -a, --author <AUTHOR>  Limit the commits output to ones with author header lines that match the specified pattern (regular expression)
  -h, --help             Print help (see more with '--help')
  -V, --version          Print version

Dependencies

~6–16MB
~222K SLoC