bash_prompt: faster git branch parsing

h/t: mathiasbynens/dotfiles@52abe37d2f9724e1d88a85cf6181b04a8dd756c4