summaryrefslogtreecommitdiff
path: root/prompt
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-18 22:17:17 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-18 22:17:28 +0300
commitb1a4b3ccc5250dcec694ddd407567144da907dc4 (patch)
treefc28f8e18c030a76ed5288fab0f7ed3b06c37f33 /prompt
parentfix: send stderr from git status to /dev/null (diff)
downloadgit-prompt-b1a4b3ccc5250dcec694ddd407567144da907dc4.tar.gz
git-prompt-b1a4b3ccc5250dcec694ddd407567144da907dc4.tar.bz2
git-prompt-b1a4b3ccc5250dcec694ddd407567144da907dc4.zip
fix: new file were not collected, sed expr corrected.
Diffstat (limited to 'prompt')
-rwxr-xr-xprompt4
1 files changed, 2 insertions, 2 deletions
diff --git a/prompt b/prompt
index 85462e6..99c2e84 100755
--- a/prompt
+++ b/prompt
@@ -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
}
"
`