more advanced git-prompt - handling new & detached head