mathiasbynens/dotfiles — pull request #143 by eins78 (2012-09-14 21:40:01+00:00)
Title: .bash_prompt: better git functions

We don't have to parse/sed/grep/etc the output, git has commands for almost everything one wants to do.
Also, it uses less calls overall (especially when `pwd` is not a git repo, it uses just 1 call to git)