summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-15 12:43:16 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-15 12:43:16 +0300
commit20724e98247a3f5d7c71781b2b1db451cbe15ec9 (patch)
treedc6df70f177ed2f35bfecff22591aa78e5f090c6
parentMerge branch 'master' into git (diff)
parentcolor fix (diff)
downloadgit-prompt-20724e98247a3f5d7c71781b2b1db451cbe15ec9.tar.gz
git-prompt-20724e98247a3f5d7c71781b2b1db451cbe15ec9.tar.bz2
git-prompt-20724e98247a3f5d7c71781b2b1db451cbe15ec9.zip
Merge branch 'git'
Conflicts: prompt
-rwxr-xr-xprompt7
1 files changed, 3 insertions, 4 deletions
diff --git a/prompt b/prompt
index 2511834..8597f8f 100755
--- a/prompt
+++ b/prompt
@@ -266,8 +266,8 @@ 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
+ s/^# modified: /git_added_files+=\" \"/p
+ s/^# new file: /git_added_files+=\" \"/p
}
"
`
@@ -332,8 +332,7 @@ PROMPT_COMMAND='
file_list+="${git_modified_files+$git_modified$git_modified_files }"
file_list+="${git_untracked_files+$git_untracked$git_untracked_files }"
[[ $file_list ]] && file_list=":${file_list}" # ${+ does not works (?)
-
- tail_local="(${head/master/m} $white$head_rev${op+ / $op}$git_color${file_list})"
+ tail_local="(${head/master/m} $white$head_rev$git_color${op+ / $op}$git_color${file_list}$git_color)"
### fringes (added depended on location)
head_local="${head_local+$git_color $head_local\n}"