This method seems like a bunch of junk to me. I suggest only returning the branch name here without all the magic. The variable `__fish_git_prompt_describe_style` is not referred anywhere else. Also the branch `GIT_DIR~` seems a bit lame.

From the research I have done, the fastest way to get the git branch is:
`git symbolic-ref --short --quiet HEAD ^/dev/null`