Brian Gernhardt d534b0ba81 git_prompt: Call git rev-parse less often
The code invoked `git rev-parse` several times when the required
information could be collected all at once.

This is based on the following commits from git.git:

efaa0c1: bash prompt: combine 'git rev-parse' executions in the main code path
e3e0b93: bash prompt: combine 'git rev-parse' for detached head
0f37c12: bash prompt: use bash builtins to check for unborn branch for dirty state
dd0b72c: bash prompt: use bash builtins to check stash state
2013-07-26 22:05:07 -04:00
..
2010-09-18 10:18:26 +08:00
2013-07-18 21:26:32 +05:30
2010-09-18 10:18:26 +08:00
2012-11-17 13:37:32 -08:00
2010-09-18 10:18:26 +08:00
2012-09-22 23:49:26 -07:00
2010-09-18 10:18:26 +08:00
2013-01-20 15:55:10 +01:00
2012-07-01 14:20:43 -07:00
2010-09-18 10:18:26 +08:00
2010-09-18 10:18:26 +08:00
2010-09-18 10:18:26 +08:00
2013-02-17 12:56:56 -08:00
2013-01-12 15:22:09 -08:00
2010-09-19 13:56:30 +08:00
2013-04-28 16:31:25 -07:00
2010-09-18 10:18:26 +08:00