summaryrefslogtreecommitdiff
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
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
-rwxr-xr-xgit-prompt.sh6
-rw-r--r--index.txt7
2 files changed, 8 insertions, 5 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
diff --git a/index.txt b/index.txt
index cf6bcc7..2c1d6ba 100644
--- a/index.txt
+++ b/index.txt
@@ -161,10 +161,13 @@ time consuming ops in postconfig which is executed only once.
== Authors
- Leonid Volnitsky (original author) <leonid@volnitsky.com>, http://volnitsky.com
-- Niklas Hofer (CWD truncation) <niklas+dev AT lanpartei.de>, httpx://github.com/niklas/
-- Lee Nussbaum (HG support) lee.nussbaum AT gmail.com, httpx://github.com/wln
+- Niklas Hofer (CWD truncation) <niklas+dev AT lanpartei.de>, httpx://github.com/niklas/[]
+- Lee Nussbaum (HG support) lee.nussbaum AT gmail.com, httpx://github.com/wln[]
- Albert Vernon http://xenoclub.wordpress.com[]
- Amir Yalon httpx://github.com/amiryal[]
+- Martin httpx://github.com/jerrywho[] <JerryWho AT gmx.de>
+
+
[bibliography]