summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2009-08-20 09:32:32 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2009-08-20 09:32:32 +0300
commit1d2254b3ea34da64b9be49f422d434193bc7154a (patch)
tree2d2da291c3d2b1c7ba534755fbf10791ca40dc3c /git-prompt.sh
parentcutting default_host from the beginning not from the end of host(name) (diff)
downloadgit-prompt-1d2254b3ea34da64b9be49f422d434193bc7154a.tar.gz
git-prompt-1d2254b3ea34da64b9be49f422d434193bc7154a.tar.bz2
git-prompt-1d2254b3ea34da64b9be49f422d434193bc7154a.zip
fixed: svn status can have non-space 2nd and 3rd columns
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 044252d..79890bc 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -337,9 +337,9 @@ parse_svn_status() {
unset status modified added clean init added mixed untracked op detached
eval `svn status 2>/dev/null |
sed -n '
- s/^A \([^.].*\)/modified=modified; modified_files[${#modified_files[@]}]=\"\1\";/p
- s/^M \([^.].*\)/modified=modified; modified_files[${#modified_files[@]}]=\"\1\";/p
- s/^\? \([^.].*\)/untracked=untracked; untracked_files[${#untracked_files[@]}]=\"\1\";/p
+ s/^A... \([^.].*\)/modified=modified; modified_files[${#modified_files[@]}]=\"\1\";/p
+ s/^M... \([^.].*\)/modified=modified; modified_files[${#modified_files[@]}]=\"\1\";/p
+ s/^\?... \([^.].*\)/untracked=untracked; untracked_files[${#untracked_files[@]}]=\"\1\";/p
'
`
# TODO branch detection if standard repo layout