summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-18 20:33:18 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2008-06-18 20:33:18 +0300
commitef9fed7a6acac58fd41fdbad1987310a7c017ae5 (patch)
tree7dc65d9a4d26a82b257f5011b8a861c6f239baa1
parentfix: LC_ALL=C deleted (diff)
parentfix: send stderr from git status to /dev/null (diff)
downloadgit-prompt-ef9fed7a6acac58fd41fdbad1987310a7c017ae5.tar.gz
git-prompt-ef9fed7a6acac58fd41fdbad1987310a7c017ae5.tar.bz2
git-prompt-ef9fed7a6acac58fd41fdbad1987310a7c017ae5.zip
Merge branch 'git'
-rwxr-xr-xprompt5
1 files changed, 3 insertions, 2 deletions
diff --git a/prompt b/prompt
index b6dcd4f..0af64e5 100755
--- a/prompt
+++ b/prompt
@@ -250,7 +250,7 @@ PROMPT_COMMAND='
git_dir=`git-rev-parse --git-dir 2> /dev/null`
if [[ $git_dir ]]; then
- eval `git status |
+ eval `git status 2>/dev/null |
sed -n "
s/^# On branch /branch=/p
@@ -263,7 +263,8 @@ PROMPT_COMMAND='
/^# Changed but not updated:/,/^# [A-Z]/ {
s/^# Changed but not updated:/modified=modified/p
- s/# modified: /git_modified_files+=\" \"/p
+ s/^# modified: /git_modified_files+=\" \"/p
+ s/^# unmerged: /git_modified_files+=\" \"/p
}
/^# Changes to be committed:/,/^# [A-Z]/ {