#git #fun #useless #anger-management

bin+lib git-anger-management

Count your naughty words in git commit messages

7 releases (breaking)

✓ Uses Rust 2018 edition

0.6.0 Dec 27, 2018
0.5.1 Nov 9, 2018
0.4.0 Oct 18, 2018
0.3.0 Oct 15, 2018
0.1.0 Oct 14, 2018

#1 in #fun

Download history 10/week @ 2018-12-14 32/week @ 2018-12-21 6/week @ 2018-12-28 14/week @ 2019-01-04 13/week @ 2019-01-11 11/week @ 2019-01-18 4/week @ 2019-01-25 5/week @ 2019-02-01 1/week @ 2019-02-15 1/week @ 2019-02-22 14/week @ 2019-03-01 2/week @ 2019-03-08 7/week @ 2019-03-15 63/week @ 2019-03-22

114 downloads per month

GPL-3.0-or-later

24KB
232 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.

asciicast

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

~13MB
~265K SLoC