Smarter Git branch support.