#git #fun #useless #anger-management

bin+lib git-anger-management

Count your naughty words in git commit messages

4 releases (breaking)

0.4.0 Oct 18, 2018
0.3.0 Oct 15, 2018
0.2.0 Oct 15, 2018
0.1.0 Oct 14, 2018

#1 in #fun

Download history 102/week @ 2018-10-19 7/week @ 2018-10-26

36 downloads per month

GPL-3.0-or-later

23KB
225 lines

git-anger-management Build Status Crates.io

What

Have you ever wondered how much you or your co-workers actually curse in your commit messages? Worry no more, git-anger-management is here to help you. Simply run it against your repository and it'll tell you who is the naughtiest of them all.

Why

Some times the only way to vent at the ridiculous crap we make is to write really angry commit messages, I do it all the time. And I wanted to know just how angry I get.

Installation

Make sure you have Rust installed (I recommend installing via rustup), then run cargo install git-anger-management. You can now check how naughty you are by running git anger-management in the directory where you want to check naughtiness.

Output should look something like this:

$ git anger-management
repo: (46/569) naughty commits/commits
{
    "goddamn": 2,
    "shit": 7,
    "fuck": 18,
    "bloody": 2,
    "fucking": 15,
    "fucked": 1,
    "tits": 1
}
Sondre Nilsen: (46/495) naughty commits/commits
{
    "goddamn": 2,
    "shit": 7,
    "tits": 1,
    "bloody": 2,
    "fucking": 15,
    "fucked": 1,
    "fuck": 18
}

You can also point it to other directories if you want to look somwhere else but you're too lazy to actually cd into that directory:

$ git anger-management ../../other-repo/
other-repo: (3/56) naughty commits/commits
{
    "goddamn": 1,
    "fuck": 1,
    "fucking": 1
}
Sondre Nilsen: (3/56) naughty commits/commits
{
    "goddamn": 1,
    "fuck": 1,
    "fucking": 1
}

Or look at the help by running git anger-management -h.

Dependencies

~12MB
~316K SLoC