DTrejo / rotten

find & delete empty branches in your git repository; find unmerged branches with tons of code that needs to get into production!
http://dtrejo.com/
36 stars 3 forks source link

Rotten — find empty git branches and unmerged ones with tons of code!

$ npm -g install rotten

It helps you discover

Why is this useful?

How rotten am I really?

Try it out.

$ npm -g install rotten
$ cd my-big-git-repo
$ rotten

Usage

Usage: rotten --repo /path-to-git-repo --prod master

Options:
  -r, --repo         the repo youd like to examine for rotting code                                        [default: "."]
  -p, --prod         the branch you have running in production                                             [default: "master"]
  --keep             don't run "harvested" checks (if you want to keep merged branches)                    [default: false]
  -c, --mostcommits  show branches with the most commits first (defaults to showing oldest commits first)  [default: false]

If you'd like to order by most commits waiting (instead of oldest commit waiting):

$ rotten --mostcommits

Scoring?

Your rotten score is #rotten:13/harvested:37

Explanation: