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
save having to parse the output...
instead of:
git rev-list --left-right {local}...{remote}
; use:git rev-list {local}..{remote} --count
git rev-list {remote}..{local} --count