3 ms·
My suggestion is to use something more like this (provided by Git's bash-completion): branch=$(__git_ps1 "%s") That doesn't have any problem with detached
by telemachos 15y ago
My suggestion is to use something more like this (provided by Git's bash-completion):
branch=$(__git_ps1 "%s")
That doesn't have any problem with detached head: http://cl.ly/8yN8 http://cl.ly/8yN8
- Groxx 15y agoooh, very nice. Prior to this & your other reply, I hadn't seen anything using the __git functions. Everyone uses sed. Thanks!