2 if git branch --verbose | grep -q "\(ahead\|behind\) [0-9]"; then
3 up=`git rev-parse --abbrev-ref @{u} 2>/dev/null`
4 if [ -n "$up" -a "$up" != "@{u}" ]; then
5 set -- `git rev-list --count --left-right @{u}...HEAD`
9 if [ "$left" -gt 0 ]; then
12 if [ "$right" -gt 0 ]; then