mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-11 16:16:21 -04:00
Compare commits
No commits in common. "master" and "2.6.1" have entirely different histories.
25
CITATION.cff
25
CITATION.cff
|
|
@ -1,25 +0,0 @@
|
||||||
cff-version: 1.2.0
|
|
||||||
title: Git Quick Stats
|
|
||||||
message: >-
|
|
||||||
If you use this software, please cite it using the
|
|
||||||
metadata from this file.
|
|
||||||
type: software
|
|
||||||
authors:
|
|
||||||
- name-particle: tomice
|
|
||||||
- name-particle: arzzen
|
|
||||||
identifiers:
|
|
||||||
- type: url
|
|
||||||
value: "https://github.com/git-quick-stats"
|
|
||||||
description: >-
|
|
||||||
Simple and efficient way to access various statistics
|
|
||||||
in a git repository
|
|
||||||
repository-code: "https://github.com/git-quick-stats/git-quick-stats"
|
|
||||||
url: "https://git-quick-stats.sh/"
|
|
||||||
abstract: >-
|
|
||||||
Git-quick-stats is a simple and efficient way to access
|
|
||||||
various statistics in a git repository.
|
|
||||||
keywords:
|
|
||||||
- git
|
|
||||||
- stats
|
|
||||||
license: MIT
|
|
||||||
version: 2.6.2
|
|
||||||
|
|
@ -4,7 +4,7 @@ FROM alpine
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
# Install required packages & build git-quick-stats
|
# Install required packages & build git-quick-stats
|
||||||
RUN apk add --no-cache bash git make ncurses coreutils util-linux \
|
RUN apk add --no-cache bash git make ncurses util-linux \
|
||||||
&& cd /app \
|
&& cd /app \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& rm -rf /app \
|
&& rm -rf /app \
|
||||||
|
|
|
||||||
98
README.md
98
README.md
|
|
@ -6,7 +6,7 @@
|
||||||
>
|
>
|
||||||
> Any git repository may contain tons of information about commits, contributors, and files. Extracting this information is not always trivial, mostly because there are a gadzillion options to a gadzillion git commands - I don't think there is a single person alive who knows them all. Probably not even [Linus Torvalds](https://github.com/torvalds) himself :).
|
> Any git repository may contain tons of information about commits, contributors, and files. Extracting this information is not always trivial, mostly because there are a gadzillion options to a gadzillion git commands - I don't think there is a single person alive who knows them all. Probably not even [Linus Torvalds](https://github.com/torvalds) himself :).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
|
|
@ -54,11 +54,9 @@
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
@ -120,16 +118,14 @@ LIST OPTIONS
|
||||||
see a list of everyone who contributed to the repo
|
see a list of everyone who contributed to the repo
|
||||||
-n, --new-contributors
|
-n, --new-contributors
|
||||||
list everyone who made their first contribution since a specified date
|
list everyone who made their first contribution since a specified date
|
||||||
-N, --new-contributors-since-tag
|
|
||||||
list everyone who made their first contribution since a specified git tag
|
|
||||||
-a, --commits-per-author
|
-a, --commits-per-author
|
||||||
displays a list of commits per author
|
displays a list of commits per author
|
||||||
-d, --commits-per-day
|
-d, --commits-per-day
|
||||||
displays a list of commits per day
|
displays a list of commits per day
|
||||||
-m, --commits-by-month
|
|
||||||
displays a list of commits per month
|
|
||||||
-Y, --commits-by-year
|
-Y, --commits-by-year
|
||||||
displays a list of commits per year
|
displays a list of commits per year
|
||||||
|
-m, --commits-by-month
|
||||||
|
displays a list of commits per month
|
||||||
-w, --commits-by-weekday
|
-w, --commits-by-weekday
|
||||||
displays a list of commits per weekday
|
displays a list of commits per weekday
|
||||||
-W, --commits-by-author-by-weekday
|
-W, --commits-by-author-by-weekday
|
||||||
|
|
@ -143,12 +139,6 @@ LIST OPTIONS
|
||||||
-Z, --commits-by-author-by-timezone
|
-Z, --commits-by-author-by-timezone
|
||||||
displays a list of commits per timezone by author
|
displays a list of commits per timezone by author
|
||||||
|
|
||||||
CALENDAR OPTIONS
|
|
||||||
-k, --commits-calendar-by-author
|
|
||||||
shows a calendar heatmap of commits per day-of-week per month for a given author
|
|
||||||
-H, --commits-heatmap
|
|
||||||
shows a heatmap of commits per day-of-week per month for the last 30 days
|
|
||||||
|
|
||||||
SUGGEST OPTIONS
|
SUGGEST OPTIONS
|
||||||
-r, --suggest-reviewers
|
-r, --suggest-reviewers
|
||||||
show the best people to contact to review code
|
show the best people to contact to review code
|
||||||
|
|
@ -175,14 +165,6 @@ You can set variable `_GIT_LIMIT` for limited output. It will affect the "change
|
||||||
export _GIT_LIMIT=20
|
export _GIT_LIMIT=20
|
||||||
```
|
```
|
||||||
|
|
||||||
### Git tag
|
|
||||||
|
|
||||||
You can set `_GIT_TAG` to define the default tag used by the "new contributors since tag" option.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
export _GIT_TAG="foo"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Git log options
|
### Git log options
|
||||||
|
|
||||||
You can set `_GIT_LOG_OPTIONS` for [git log options](https://git-scm.com/docs/git-log#_options):
|
You can set `_GIT_LOG_OPTIONS` for [git log options](https://git-scm.com/docs/git-log#_options):
|
||||||
|
|
@ -222,39 +204,18 @@ You can set the variable `_GIT_BRANCH` to set the branch of the stats. Works wit
|
||||||
export _GIT_BRANCH="master"
|
export _GIT_BRANCH="master"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Ignore authors
|
|
||||||
|
|
||||||
You can set the variable `_GIT_IGNORE_AUTHORS` to filter out specific authors. It will affect the "All contributors", ""Suggested code reviewers" and "New contributors" options.
|
You can set the variable `_GIT_IGNORE_AUTHORS` to filter out specific authors. It will affect the "All contributors", ""Suggested code reviewers" and "New contributors" options.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export _GIT_IGNORE_AUTHORS="(author@examle.com|username)"
|
export _GIT_IGNORE_AUTHORS="(author@examle.com|username)"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Sorting contribution stats
|
|
||||||
|
|
||||||
You can sort contribution stats by field `name`, `commits`, `insertions`, `deletions`, or `lines` (total lines changed) and order (`asc`, `desc`). e.g.: `commits-desc`
|
|
||||||
|
|
||||||
```bash
|
|
||||||
export _GIT_SORT_BY="name-asc"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Commit days
|
|
||||||
|
|
||||||
You can set \_GIT_DAYS to set the number of days for the heatmap
|
|
||||||
|
|
||||||
```bash
|
|
||||||
export _GIT_DAYS=30
|
|
||||||
```
|
|
||||||
|
|
||||||
### Color themes
|
### Color themes
|
||||||
|
|
||||||
You can change to the legacy color scheme by toggling the variable `_MENU_THEME` between `default` and `legacy`.
|
You can change to the legacy color scheme by toggling the variable `_MENU_THEME` between `default` and `legacy`
|
||||||
You can completely disable the color theme by setting the `_MENU_THEME` variable to `none`.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export _MENU_THEME="legacy"
|
export _MENU_THEME="legacy"
|
||||||
# or
|
|
||||||
export _MENU_THEME="none"
|
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
@ -290,16 +251,15 @@ sudo make reinstall
|
||||||
|
|
||||||
### macOS (homebrew)
|
### macOS (homebrew)
|
||||||
|
|
||||||
`git-quick-stats` requires GNU `date`. On macOS, install GNU coreutils:
|
macOS requires GNU coreutils to be installed and for the non "g" aliased
|
||||||
|
versions to be exported to your path. The following is an example of how to
|
||||||
|
perform this if you are using Homebrew as your package manager.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew install coreutils
|
brew install coreutils
|
||||||
export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
|
||||||
```
|
```
|
||||||
|
|
||||||
The script auto-detects GNU date as either `date` or `gdate`, so exporting
|
|
||||||
`gnubin` is optional for this project.
|
|
||||||
|
|
||||||
From there, you can install via Homebrew as follows:
|
From there, you can install via Homebrew as follows:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -308,20 +268,10 @@ brew install git-quick-stats
|
||||||
|
|
||||||
Or you can follow the UNIX and Linux instructions if you wish.
|
Or you can follow the UNIX and Linux instructions if you wish.
|
||||||
|
|
||||||
If you would like to default to using GNU coreutils system-wide, add
|
If you would like to default to using the GNU coreutils (recommended), then you
|
||||||
`export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"` to your
|
can add `export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"` to
|
||||||
applicable `~/.bash_profile`, `~/.zprofile`, or other relevant profile based
|
your applicable `~/.bash_profile`, `~/.zprofile`, or other relevant profile
|
||||||
on the shell of your choice.
|
based on the shell of your choice.
|
||||||
|
|
||||||
### FreeBSD
|
|
||||||
|
|
||||||
`git-quick-stats` requires GNU `date`. On FreeBSD, install GNU coreutils:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
pkg install coreutils
|
|
||||||
```
|
|
||||||
|
|
||||||
FreeBSD provides GNU date as `gdate`, and the script auto-detects it.
|
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
|
|
@ -343,7 +293,6 @@ You can use the Docker image provided:
|
||||||
## System requirements
|
## System requirements
|
||||||
|
|
||||||
- An OS with a Bash shell
|
- An OS with a Bash shell
|
||||||
- GNU `date` available as either `date` or `gdate`
|
|
||||||
- Tools we use:
|
- Tools we use:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
@ -431,3 +380,24 @@ MIT see [LICENSE][] for the full license text.
|
||||||
This project exists thanks to all the people who contribute.
|
This project exists thanks to all the people who contribute.
|
||||||
|
|
||||||
[](https://github.com/git-quick-stats/git-quick-stats/graphs/contributors)
|
[](https://github.com/git-quick-stats/git-quick-stats/graphs/contributors)
|
||||||
|
|
||||||
|
### Backers
|
||||||
|
|
||||||
|
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/git-quick-stats#backer)]
|
||||||
|
|
||||||
|
[](https://opencollective.com/git-quick-stats#backers)
|
||||||
|
|
||||||
|
### Sponsors
|
||||||
|
|
||||||
|
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/git-quick-stats#sponsor)]
|
||||||
|
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/0/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/1/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/2/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/3/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/4/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/5/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/6/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/7/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/8/website)
|
||||||
|
[](https://opencollective.com/git-quick-stats/sponsor/9/website)
|
||||||
|
|
|
||||||
964
git-quick-stats
964
git-quick-stats
File diff suppressed because it is too large
Load diff
|
|
@ -17,30 +17,8 @@ and files. Extracting this information is not always trivial, mostly because
|
||||||
of a gadzillion options to a gadzillion git commands.
|
of a gadzillion options to a gadzillion git commands.
|
||||||
This program allows you to see detailed information about a git repository.
|
This program allows you to see detailed information about a git repository.
|
||||||
.PP
|
.PP
|
||||||
.SH PLATFORM NOTES
|
|
||||||
.PP
|
|
||||||
git-quick-stats requires GNU date support for date parsing options.
|
|
||||||
.PP
|
|
||||||
On macOS, install GNU coreutils with:
|
|
||||||
.PP
|
|
||||||
.B brew install coreutils
|
|
||||||
.PP
|
|
||||||
On FreeBSD, install GNU coreutils with:
|
|
||||||
.PP
|
|
||||||
.B pkg install coreutils
|
|
||||||
.PP
|
|
||||||
GNU date may be available as either
|
|
||||||
.B date
|
|
||||||
or
|
|
||||||
.B gdate
|
|
||||||
and git-quick-stats auto-detects both.
|
|
||||||
.PP
|
|
||||||
.SH GENERATE OPTIONS
|
.SH GENERATE OPTIONS
|
||||||
.PP
|
.PP
|
||||||
\fB\-h\fR, \-?, \fB\-\-help\fR
|
|
||||||
.IP
|
|
||||||
display this help text in the terminal
|
|
||||||
.PP
|
|
||||||
\fB\-T\fR, \fB\-\-detailed\-git\-stats\fR
|
\fB\-T\fR, \fB\-\-detailed\-git\-stats\fR
|
||||||
.IP
|
.IP
|
||||||
give a detailed list of git stats
|
give a detailed list of git stats
|
||||||
|
|
@ -97,11 +75,6 @@ see a list of everyone who contributed to the repo
|
||||||
list everyone who made their first contribution since a specified date
|
list everyone who made their first contribution since a specified date
|
||||||
.HP
|
.HP
|
||||||
.PP
|
.PP
|
||||||
\fB\-N\fR, \fB\-\-new\-contributors\-since\-tag\fR
|
|
||||||
.IP
|
|
||||||
list everyone who made their first contribution since a specified git tag
|
|
||||||
.HP
|
|
||||||
.PP
|
|
||||||
\fB\-a\fR, \fB\-\-commits\-per\-author\fR
|
\fB\-a\fR, \fB\-\-commits\-per\-author\fR
|
||||||
.IP
|
.IP
|
||||||
displays a list of commits per author
|
displays a list of commits per author
|
||||||
|
|
@ -163,12 +136,9 @@ displays a calendar-style grid of commit activity per day-of-week and month for
|
||||||
show the best people to contact to review code
|
show the best people to contact to review code
|
||||||
.HP
|
.HP
|
||||||
.PP
|
.PP
|
||||||
.SH CALENDAR OPTIONS
|
\fB\-h\fR, \-?, \fB\-\-help\fR
|
||||||
.PP
|
.IP
|
||||||
\fB\-k\fR, \fB\-\-commits\-calendar\-by\-author\fR outputs a visual grid of commit activity for a selected author, grouped by day-of-week (rows: Mon..Sun) and month (columns: Jan..Dec). Each cell is 3 characters wide, separated by one space.
|
display this help text in the terminal
|
||||||
.PP
|
|
||||||
.PP
|
|
||||||
\fB\-H\fR, \fB\-\-commits\-heatmap\fR shows a heatmap of commits per day per hour for the last 30 days
|
|
||||||
.PP
|
.PP
|
||||||
.SH ADDITIONAL USAGE
|
.SH ADDITIONAL USAGE
|
||||||
You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log, example:
|
You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log, example:
|
||||||
|
|
@ -179,10 +149,6 @@ You can set _GIT_LIMIT for limited output log, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_LIMIT=20
|
.B export _GIT_LIMIT=20
|
||||||
.PP
|
.PP
|
||||||
You can set _GIT_TAG to define the default tag used by the "new contributors since tag" option, example:
|
|
||||||
.PP
|
|
||||||
.B export _GIT_TAG="foo"
|
|
||||||
.PP
|
|
||||||
You can set _GIT_LOG_OPTIONS for git log options, example:
|
You can set _GIT_LOG_OPTIONS for git log options, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_LOG_OPTIONS="--ignore-all-space --ignore-blank-lines"
|
.B export _GIT_LOG_OPTIONS="--ignore-all-space --ignore-blank-lines"
|
||||||
|
|
@ -199,28 +165,35 @@ You can also set _GIT_MERGE_VIEW to only show merge commits, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_MERGE_VIEW="exclusive"
|
.B export _GIT_MERGE_VIEW="exclusive"
|
||||||
.PP
|
.PP
|
||||||
You can sort contribution stats by field "name", "commits", "insertions", "deletions", or "lines" (total lines changed) and order ("asc", "desc"). e.g.: "commits-desc"
|
You can switch to the legacy color scheme, example:
|
||||||
.PP
|
|
||||||
.B export _GIT_SORT_BY="name-asc"
|
|
||||||
.PP
|
|
||||||
You can change to the legacy color scheme by toggling the variable "_MENU_THEME" between "default" and "legacy". You can completely disable the color theme by setting the "_MENU_THEME" variable to "none", example:
|
|
||||||
.PP
|
.PP
|
||||||
.B export _MENU_THEME=legacy
|
.B export _MENU_THEME=legacy
|
||||||
.PP
|
.PP
|
||||||
or
|
|
||||||
.B export _MENU_THEME=none
|
|
||||||
.PP
|
|
||||||
You can set _GIT_BRANCH to set the branch of the stats, example:
|
You can set _GIT_BRANCH to set the branch of the stats, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_BRANCH="master"
|
.B export _GIT_BRANCH="master"
|
||||||
.PP
|
.PP
|
||||||
|
.SH Calendar activity output
|
||||||
|
.PP
|
||||||
|
\fBactivity-calendar\fR outputs a visual grid of commit activity for a selected author, grouped by day-of-week (rows: Mon..Sun) and month (columns: Jan..Dec). Each cell is 3 characters wide, separated by one space.
|
||||||
|
.PP
|
||||||
|
Sample output:
|
||||||
|
.PP
|
||||||
|
.nf
|
||||||
|
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
|
||||||
|
Mon ▓▓▓ ░░░ ▒▒▒ ░░░ ░░░ ▒▒▒ ▓▓▓ ░░░ ░░░ ▓▓▓ ▒▒▒ ▒▒▒
|
||||||
|
Tue ▒▒▒ ░░░ ▒▒▒ ░░░ ▒▒▒ ░░░ ▒▒▒ ▓▓▓ ▒▒▒ ░░░ ░░░ ░░░
|
||||||
|
Wed ░░░ ▓▓▓ ░░░ ▓▓▓ ▒▒▒ ░░░ ░░░ ▒▒▒ ░░░ ░░░ ▓▓▓ ░░░
|
||||||
|
Thu ░░░ ▒▒▒ ░░░ ░░░ ▒▒▒ ░░░ ▓▓▓ ▒▒▒ ▒▒▒ ░░░ ░░░ ▒▒▒
|
||||||
|
Fri ▒▒▒ ░░░ ▒▒▒ ▓▓▓ ░░░ ▓▓▓ ▒▒▒ ░░░ ▒▒▒ ░░░ ▒▒▒ ░░░
|
||||||
|
Sat ░░░ ░░░ ▒▒▒ ░░░ ░░░ ░░░ ▒▒▒ ░░░ ▒▒▒ ▓▓▓ ▒▒▒ ░░░
|
||||||
|
Sun ▓▓▓ ░░░ ▓▓▓ ░░░ ░░░ ▓▓▓ ░░░ ▒▒▒ ░░░ ░░░ ▓▓▓ ░░░
|
||||||
|
|
||||||
|
Legend: ... = 0 ░░░ = 1–2 ▒▒▒ = 3–5 ▓▓▓ = 6+ commits
|
||||||
|
.PP
|
||||||
You can set _GIT_IGNORE_AUTHORS to filter out specific authors, example:
|
You can set _GIT_IGNORE_AUTHORS to filter out specific authors, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_IGNORE_AUTHORS="(author@examle.com|username)"
|
.B export _GIT_IGNORE_AUTHORS="(author@examle.com|username)"
|
||||||
.PP
|
|
||||||
You can set _GIT_DAYS to set the number of days for the heatmap, example:
|
|
||||||
.PP
|
|
||||||
.B export _GIT_DAYS=30"
|
|
||||||
.
|
.
|
||||||
.fi
|
.fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
. tests/assert.sh -v
|
. tests/assert.sh -v
|
||||||
|
|
||||||
src="./git-quick-stats"
|
src="./git-quick-stats"
|
||||||
assert "$src fail" "Invalid argument: fail
|
assert "$src fail" "Invalid argument
|
||||||
|
|
||||||
NAME
|
NAME
|
||||||
git-quick-stats - Simple and efficient way to access various stats in a git repo
|
git-quick-stats - Simple and efficient way to access various stats in a git repo
|
||||||
|
|
@ -52,8 +52,6 @@ LIST OPTIONS
|
||||||
see a list of everyone who contributed to the repo
|
see a list of everyone who contributed to the repo
|
||||||
-n, --new-contributors
|
-n, --new-contributors
|
||||||
list everyone who made their first contribution since a specified date
|
list everyone who made their first contribution since a specified date
|
||||||
-N, --new-contributors-since-tag
|
|
||||||
list everyone who made their first contribution since a specified tag
|
|
||||||
-a, --commits-per-author
|
-a, --commits-per-author
|
||||||
displays a list of commits per author
|
displays a list of commits per author
|
||||||
-d, --commits-per-day
|
-d, --commits-per-day
|
||||||
|
|
@ -75,12 +73,6 @@ LIST OPTIONS
|
||||||
-Z, --commits-by-author-by-timezone
|
-Z, --commits-by-author-by-timezone
|
||||||
displays a list of commits per timezone by author
|
displays a list of commits per timezone by author
|
||||||
|
|
||||||
CALENDAR OPTIONS
|
|
||||||
-k, --commits-calendar-by-author
|
|
||||||
shows a calendar heatmap of commits per day-of-week per month for a given author
|
|
||||||
-H, --commits-heatmap
|
|
||||||
shows a heatmap of commits per day-of-week per month for the last 30 days
|
|
||||||
|
|
||||||
SUGGEST OPTIONS
|
SUGGEST OPTIONS
|
||||||
-r, --suggest-reviewers
|
-r, --suggest-reviewers
|
||||||
show the best people to contact to review code
|
show the best people to contact to review code
|
||||||
|
|
@ -100,34 +92,24 @@ ADDITIONAL USAGE
|
||||||
ex: export _GIT_MERGE_VIEW=enable
|
ex: export _GIT_MERGE_VIEW=enable
|
||||||
You can also set _GIT_MERGE_VIEW to only show merge commits
|
You can also set _GIT_MERGE_VIEW to only show merge commits
|
||||||
ex: export _GIT_MERGE_VIEW=exclusive
|
ex: export _GIT_MERGE_VIEW=exclusive
|
||||||
You can change to the legacy color scheme by toggling the variable \"_MENU_THEME\" between \"default\" and \"legacy\".
|
You can set _MENU_THEME to display the legacy color scheme
|
||||||
You can completely disable the color theme by setting the \"_MENU_THEME\" variable to \"none\".
|
|
||||||
ex: export _MENU_THEME=legacy
|
ex: export _MENU_THEME=legacy
|
||||||
You can set _GIT_BRANCH to set the branch of the stats
|
You can set _GIT_BRANCH to set the branch of the stats
|
||||||
ex: export _GIT_BRANCH=master
|
ex: export _GIT_BRANCH=master
|
||||||
You can set _GIT_IGNORE_AUTHORS to filter out specific authors
|
You can set _GIT_IGNORE_AUTHORS to filter out specific authors
|
||||||
ex: export _GIT_IGNORE_AUTHORS=\"(author1|author2)\"
|
ex: export _GIT_IGNORE_AUTHORS=\"(author1|author2)\""
|
||||||
You can sort contribution stats by field \"name\", \"commits\", \"insertions\", \"deletions\", or \"lines\" - total lines changed and order - \"asc\", \"desc\"
|
|
||||||
ex: export _GIT_SORT_BY=\"name-asc\"
|
|
||||||
You can set _GIT_DAYS to set the number of days for the heatmap
|
|
||||||
ex: export _GIT_DAYS=30"
|
|
||||||
|
|
||||||
assert_raises "$src fail" 1
|
assert_raises "$src fail" 1
|
||||||
|
|
||||||
assert_contains "$src --suggest-reviewers" "Suggested code reviewers (based on git history)"
|
assert_contains "$src --suggest-reviewers" "Suggested code reviewers (based on git history)"
|
||||||
assert_success "$src --suggest-reviewers"
|
assert_success "$src --suggest-reviewers"
|
||||||
|
|
||||||
assert_contains "$src --detailed-git-stats" "Contribution stats (by author) on the current branch"
|
assert_contains "$src --detailed-git-stats" "Contribution stats"
|
||||||
assert_success "$src --detailed-git-stats"
|
assert_success "$src --detailed-git-stats"
|
||||||
|
|
||||||
assert_contains "$src --commits-per-day" "Git commits per date"
|
assert_contains "$src --commits-per-day" "Git commits per date"
|
||||||
assert_success "$src --commits-per-day"
|
assert_success "$src --commits-per-day"
|
||||||
|
|
||||||
assert_contains "$src --my-daily-stats" "My daily status"
|
|
||||||
assert_contains "$src --my-daily-stats" "most changed files today"
|
|
||||||
assert_contains "$src --my-daily-stats" "most active users today (excluding you)"
|
|
||||||
assert_success "$src --my-daily-stats"
|
|
||||||
|
|
||||||
assert_startswith "$src --commits-by-year" "Git commits by year"
|
assert_startswith "$src --commits-by-year" "Git commits by year"
|
||||||
assert_success "$src --commits-by-year"
|
assert_success "$src --commits-by-year"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue