diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-18 20:33:18 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-18 20:33:18 +0300 |
commit | ef9fed7a6acac58fd41fdbad1987310a7c017ae5 (patch) | |
tree | 7dc65d9a4d26a82b257f5011b8a861c6f239baa1 /prompt | |
parent | fix: LC_ALL=C deleted (diff) | |
parent | fix: send stderr from git status to /dev/null (diff) | |
download | git-prompt-ef9fed7a6acac58fd41fdbad1987310a7c017ae5.tar.gz git-prompt-ef9fed7a6acac58fd41fdbad1987310a7c017ae5.tar.bz2 git-prompt-ef9fed7a6acac58fd41fdbad1987310a7c017ae5.zip |
Merge branch 'git'
Diffstat (limited to 'prompt')
-rwxr-xr-x | prompt | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]/ { |