Git - find unmerged commits

This is Ruby script I found way back and was using it since.

The credits for creation goes to Zach Dennis. The script is decribed in his blog post

The source is here

Example

This is beginning of very long output from Groovy source

The code