diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-15 12:43:16 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-15 12:43:16 +0300 |
commit | 20724e98247a3f5d7c71781b2b1db451cbe15ec9 (patch) | |
tree | dc6df70f177ed2f35bfecff22591aa78e5f090c6 | |
parent | Merge branch 'master' into git (diff) | |
parent | color fix (diff) | |
download | git-prompt-20724e98247a3f5d7c71781b2b1db451cbe15ec9.tar.gz git-prompt-20724e98247a3f5d7c71781b2b1db451cbe15ec9.tar.bz2 git-prompt-20724e98247a3f5d7c71781b2b1db451cbe15ec9.zip |
Merge branch 'git'
Conflicts:
prompt
-rwxr-xr-x | prompt | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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}" |