diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-15 11:39:02 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-15 11:45:24 +0300 |
commit | 95d7c0cb51b10514010f4b234dc9aa3de151e252 (patch) | |
tree | 4ba16ecd16a1bca70d55d39ed3b90ee389fbb278 | |
parent | display of "master" replaced with "m" (diff) | |
download | git-prompt-95d7c0cb51b10514010f4b234dc9aa3de151e252.tar.gz git-prompt-95d7c0cb51b10514010f4b234dc9aa3de151e252.tar.bz2 git-prompt-95d7c0cb51b10514010f4b234dc9aa3de151e252.zip |
bug: new files added files were not exteracted - fixed
-rwxr-xr-x | prompt | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -267,6 +267,7 @@ PROMPT_COMMAND=' /^# Changes to be committed:/,/^# [A-Z]/ { s/^# Changes to be committed:/added=added/p s/# modified: /git_added_files+=\" \"/p + s/# new file: /git_added_files+=\" \"/p } " ` @@ -315,12 +316,13 @@ PROMPT_COMMAND=' status=${status:-$untracked} # at least one should be set : ${status?prompt internal error: git status} - eval git_color=\${git_$status} + eval git_color="\${git_$status}" git_color=${git_color:-$WHITE} ### head head=`git-name-rev --name-only HEAD 2>/dev/null` head_rev=`git-rev-parse HEAD 2>/dev/null` + head_rev=${head_rev/HEAD/} head_rev=${head_rev:0:6} ### compose local label |