This script has been moved to github and is now maintained by bill-auger in order to have a proper issue tracker - all further development and communications will take place there. Thank you for your stars and comments here!
https://github.com/bill-auger/git-branch-status/
this script is also now icluded in jwiegley's git-scripts collection but please direct comments, bug reports, and feature requests to the upstream issue tracker
If anyone is interested, I've added a status-line at the end if everything is synchronized. Which is quite nice if you also have a morning routine of doing
git fetch --all && git-branch-status
.See: https://gist.github.com/kd35a/7924799
Edit: I'm having problems with basic arithmetics in bash, what the? Well, don't use my code for the time being.