Code Monkey home page Code Monkey logo

git-stats's Introduction

๐Ÿ“Š
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

git-stats's People

Contributors

dependabot[bot] avatar lukehsiao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

git-stats's Issues

Maybe a summary line would be nice

I just found your tool and it is awesome, it does what it offers very quickly. Good job!

However, I thought it would be nice to show a Totals line below all the Authors that would summarize the columns. I guess a simple sum for every column would be good enough.

The summary line could be only enabled by a cli arg like -s|--show-totals, but I would not mind having it as default.

[feature request] breakdown by language

These summaries are so fun! However, it could be helpful to break down stats by language. This is especially apparent in monorepos.

e.g. if I've contributed 200 lines of python code, but deleted 200,000k lines of json, the current git-stats summary doesn't really tell the whole story.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.