No release in over 3 years
Low commit activity in last 3 years
Gather statistics on keywording in a repo.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Gem Version Gem

How many times are words, names or functions found in the git repository?

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
    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/git-quick-stats/git-keyword-stats

Example Output

With default keywords
git-keyword-stats 
    Reading in git log... done!
    Parsing git log.
    
    +----------------+--------+---------+
    | Author/Keyword | rename | replace |
    +----------------+--------+---------+
    | arzzen         | 2      | 2       |
    | xiongchiamiov  | 0      | 1       |
    | James Pearson  | 0      | 5       |
    +----------------+--------+---------+
    | Overall        | 2      | 8       |
    +----------------+--------+---------+

Custom keywords

Example config.yml
    # list of keywords
    keywords:
        # you can use plain word
        - 'rename'
        - 'replace'
        # you can use regexp
        - '^(hot|typo|bug)fix$'
        - '^(love|hate|meh)$'
        - '^(trash|garbage|rubbish|junk)$'
        - '^(ture|treu|tuer|flase|fasle|fales)$'
Usage config
git-keyword-stats --config="path/to/config.yml"

TL;DR

Inspired by git-swear-stats, the Linux Kernel Fuck Count and its descendent,