mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-10 15:46:19 -04:00
update readme
This commit is contained in:
parent
d6c1d1e4fd
commit
3c3f261a7c
86
README.md
86
README.md
|
|
@ -1,18 +1,44 @@
|
|||
|
||||
## GIT quick statistics
|
||||
|
||||
[](https://travis-ci.org/arzzen/git-quick-stats)
|
||||
[]()
|
||||
|
||||
> `git quick-stats` is a simple and efficient way to access various statistics in git repository.
|
||||
|
||||
## Example
|
||||
## Table of Contents
|
||||
|
||||
Suggested code reviewers (based on git history):
|
||||

|
||||
[**Screenshots**](#screenshots)
|
||||
|
||||
Asciinema preview:
|
||||
[](https://asciinema.org/a/6fsugv3m2vygykk49bk7l49ut)
|
||||
[**Installation**](#installation)
|
||||
* [**Unix OS**](#unix-like-os)
|
||||
* [**OS X**](#os-x-homebrew)
|
||||
* [**Windows**](#windows-cygwin)
|
||||
|
||||
[**Usage**](#usage)
|
||||
* [**Git log since/unitl**](#git-log-since-until)
|
||||
* [**Git log limit**](#git-log-limit)
|
||||
* [**Git pathspec**](#git-pathspec)
|
||||
* [**Tests**](#tests)
|
||||
|
||||
[**System requirements**](#system-requirements)
|
||||
|
||||
[**Contribution**](#contribution)
|
||||
|
||||
[**License**](#licensing)
|
||||
|
||||
|
||||
Want to contribute? Great! First, [read this page][].
|
||||
## Screenshots
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
## Usage
|
||||
|
|
@ -27,20 +53,19 @@ Or you can use (non-interactive) direct execution:
|
|||
|
||||
`git quick-stats <optional-command-to-execute-directly>`
|
||||
|
||||
> Possible arguments:
|
||||
Possible arguments:
|
||||
> suggestReviewers, detailedGitStats, commitsByHour, commitsByWeekday, commitsByMonth, commitsPerDay, commitsPerAuthor, myDailyStats, contributors,
|
||||
branchTree, branchesByDate, changelogs
|
||||
branchTree, branchesByDate, changelogs, changelogsByAuthor
|
||||
|
||||
|
||||
#### Git log --since and --until arguments
|
||||
#### Git log since / until
|
||||
|
||||
You can set variable `_GIT_SINCE`, `_GIT_UNTIL` and limit the git log
|
||||
|
||||
eg:
|
||||
|
||||
`export _GIT_SINCE="2017-20-01"`
|
||||
|
||||
`export _GIT_UNTIL="2017-22-01"`
|
||||
```bash
|
||||
export _GIT_SINCE="2017-20-01"
|
||||
export _GIT_UNTIL="2017-22-01"
|
||||
```
|
||||
|
||||
then run `git quick-stats` (affect all stats, except "My daily status" and "Git changelogs" )
|
||||
|
||||
|
|
@ -49,29 +74,45 @@ then run `git quick-stats` (affect all stats, except "My daily status" and "Git
|
|||
|
||||
You can set variable `_GIT_LIMIT` for limited output (it will affect: "Git changelogs" and "Branch tree view" )
|
||||
|
||||
eg:
|
||||
```bash
|
||||
export _GIT_LIMIT=20
|
||||
```
|
||||
|
||||
`export _GIT_LIMIT=20`
|
||||
#### Git pathspec
|
||||
|
||||
You can exclude directory from the stats by using [pathspec](https://git-scm.com/docs/gitglossary#gitglossary-aiddefpathspecapathspec)
|
||||
|
||||
```bash
|
||||
export _GIT_PATHSPEC=':!directory'
|
||||
```
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
#### Unix like OS
|
||||
|
||||
```
|
||||
```bash
|
||||
git clone https://github.com/arzzen/git-quick-stats.git && cd git-quick-stats
|
||||
sudo make install
|
||||
```
|
||||
|
||||
For uninstalling, open up the cloned directory and run
|
||||
|
||||
```
|
||||
```bash
|
||||
sudo make uninstall
|
||||
```
|
||||
|
||||
For update/reinstall
|
||||
|
||||
```bash
|
||||
sudo make reinstall
|
||||
```
|
||||
|
||||
#### OS X (homebrew)
|
||||
|
||||
`brew install git-quick-stats`
|
||||
```bash
|
||||
brew install git-quick-stats
|
||||
```
|
||||
|
||||
#### Windows (cygwin)
|
||||
|
||||
|
|
@ -109,9 +150,16 @@ We use Github pull requests for this purpose.
|
|||
|
||||
This documentation is written using standard [markdown syntax](https://help.github.com/articles/markdown-basics/). Please submit your changes using the same syntax.
|
||||
|
||||
#### Tests
|
||||
|
||||
```bash
|
||||
make test
|
||||
```
|
||||
|
||||
## Licensing
|
||||
MIT see [LICENSE][] for the full license text.
|
||||
|
||||
[read this page]: http://github.com/arzzen/git-quick-stats/blob/master/CONTRIBUTING.md
|
||||
[landing page]: http://arzzen.github.io/git-quick-stats
|
||||
[LICENSE]: https://github.com/arzzen/git-quick-stats/blob/master/LICENSE.txt
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue