Crates.io | git-stats |
lib.rs | git-stats |
version | 0.1.18 |
source | src |
created_at | 2022-10-26 17:28:43.235834 |
updated_at | 2024-10-01 15:03:40.524577 |
description | A tool for getting aggregated commit stats |
homepage | https://github.com/lukehsiao/git-stats |
repository | https://github.com/lukehsiao/git-stats |
max_upload_size | |
id | 698072 |
size | 51,075 |
Git Stats parses log 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
This is a glorified shell script.
As such, it expects that you have git
, sort
, and uniq
installed on your machine and in your $PATH
.
cargo install git-stats --locked
A tool for getting aggregated commit 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