Crate git_anger_management
source ·Expand description
git-anger-management
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
.