diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-18 22:17:17 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-18 22:17:28 +0300 |
commit | b1a4b3ccc5250dcec694ddd407567144da907dc4 (patch) | |
tree | fc28f8e18c030a76ed5288fab0f7ed3b06c37f33 | |
parent | fix: send stderr from git status to /dev/null (diff) | |
download | git-prompt-b1a4b3ccc5250dcec694ddd407567144da907dc4.tar.gz git-prompt-b1a4b3ccc5250dcec694ddd407567144da907dc4.tar.bz2 git-prompt-b1a4b3ccc5250dcec694ddd407567144da907dc4.zip |
fix: new file were not collected, sed expr corrected.
-rwxr-xr-x | prompt | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -258,8 +258,8 @@ PROMPT_COMMAND=' s/^nothing to commit (working directory clean)/clean=clean/p /^# Untracked files:/,/^[^#]/{ - s/^# /git_untracked_files+=\" \"/p s/^# Untracked files:/untracked=untracked/p + s/^# /git_untracked_files+=\" \"/p } /^# Changed but not updated:/,/^# [A-Z]/ { @@ -271,7 +271,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 + s/^# new file: /git_added_files+=\" \"/p } " ` |