GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - git-quick-stats/git-keyword-stats: Gather statistics on keywording in a repo.

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
git-keyword-stats.gemspec
git-keyword-stats.gemspec
 
 

Repository files navigation

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,

About

Gather statistics on keywording in a repo.

Topics

descendentsgitgit-swear-statsgitlogkeywordstatisticsswear

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.