diff options
author | Peter Kristensen <ptx@cs.au.dk> | 2011-05-19 20:20:50 +0800 |
---|---|---|
committer | Leonid Volnitsky <leonid@volnitsky.com> | 2011-06-28 18:31:48 +0800 |
commit | 5ab913bea284fc5e4386ddb6fe6e9b5beee51d26 (patch) | |
tree | ec23d7b1d96920d8d5e340f59afb6474b3ca80da | |
parent | changed hex color again: bright-black (makes gray) (diff) | |
download | git-prompt-5ab913bea284fc5e4386ddb6fe6e9b5beee51d26.tar.gz git-prompt-5ab913bea284fc5e4386ddb6fe6e9b5beee51d26.tar.bz2 git-prompt-5ab913bea284fc5e4386ddb6fe6e9b5beee51d26.zip |
Don't show = when rawhex_len=0
-rwxr-xr-x | git-prompt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index f122038..e329e21 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -414,7 +414,7 @@ parse_git_status() { added_files=() modified_files=() untracked_files=() - freshness="$dim=" + freshness="$dim" unset branch status modified added clean init added mixed untracked op detached # quoting hell @@ -512,7 +512,7 @@ parse_git_status() { if [[ $rawhex_len -gt 0 ]] ; then rawhex=`git rev-parse HEAD 2>/dev/null` rawhex=${rawhex/HEAD/} - rawhex="$hex_vcs_color${rawhex:0:$rawhex_len}" + rawhex="=$hex_vcs_color${rawhex:0:$rawhex_len}" else rawhex="" fi |