Skip to content

git-quick-stats/git-keyword-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version

Inspired by git-swear-stats, the Linux Kernel Fuck Count and its descendent, git-keyword-stats will give you some interesting statistics on keywording in a git repository's commit messages.

Installation

$ gem install git-keyword-stats

Usage

$ git-keyword-stats --help
git-keyword-stats

Usage:
   git-keyword-stats [options] [messages|diffs]

Options:
   -h, --help           Show this screen.
   --debug              Print out debug messages.
   --include-merges     Look at merge commits.
   --no-progress        Don't print out progress information.
   --last-month         Log since 1 month ago
   --since=<sn>         Log since XY ago
   --until=<un>         Log until XY ago
   --config=<file>      Config file path

Readme:
   https://github.com/arzzen/git-keyword-stats

Example Output

With default keywords (bugfix,clear,typo,hotfix,debug,bug)

$ git keyword-stats 
Reading in git log... done!
Parsing git log.

+----------------+------+-------+-----+-------+--------+
| Author/Keyword | typo | clear | bug | debug | readme |
+----------------+------+-------+-----+-------+--------+
| arzzen         | 2    | 2     | 1   | 2     | 0      |
| xiongchiamiov  | 0    | 0     | 0   | 8     | 1      |
| James Pearson  | 0    | 0     | 0   | 5     | 0      |
+----------------+------+-------+-----+-------+--------+
| Overall        | 2    | 2     | 1   | 15    | 1      |
+----------------+------+-------+-----+-------+--------+

With custom keywords file

$ git keyword-stats --config="path/to/file.yml"

# example config file (cat path/to/file.yml)

keywords:
    - 'bugfix'
    - '^(clear)$'
    - 'typo'
    - 'hotfix'
    - 'readme'
    - 'debug'
    - '^(bug)$'
    - '^(hot|typo|bug)fix$' 

About

Gather statistics on keywording in a repo.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages