summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-19 09:48:25 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-19 09:48:25 +0300
commitc899fa3ac13019d795058b683f600777c1c5405d (patch)
treee8c58bf6283f056ac2c9e833907b560c91c277f7
parentdemo-script (diff)
downloadgit-prompt-c899fa3ac13019d795058b683f600777c1c5405d.tar.gz
git-prompt-c899fa3ac13019d795058b683f600777c1c5405d.tar.bz2
git-prompt-c899fa3ac13019d795058b683f600777c1c5405d.zip
trivial
-rwxr-xr-xprompt3
1 files changed, 1 insertions, 2 deletions
diff --git a/prompt b/prompt
index 5eb2d5e..f336064 100755
--- a/prompt
+++ b/prompt
@@ -314,7 +314,6 @@ PROMPT_COMMAND='
### branch
- #head_tail=`echo $head | sed 's/[^^~]*//'` # we cut head to leave only ^~, and reattach to branch name
branch=${branch/master/M}
grep -q "^ref:" $git_dir/HEAD 2>/dev/null || detached=detached
@@ -335,7 +334,7 @@ PROMPT_COMMAND='
# at least one should be set
: ${status?prompt internal error: git status}
eval git_color="\${git_$status}"
- git_color=${git_color:-$WHITE}
+ git_color=${git_color:-$WHITE} # default
### compose local label