diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-08-20 09:32:32 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-08-20 09:32:32 +0300 |
commit | 1d2254b3ea34da64b9be49f422d434193bc7154a (patch) | |
tree | 2d2da291c3d2b1c7ba534755fbf10791ca40dc3c | |
parent | cutting default_host from the beginning not from the end of host(name) (diff) | |
download | git-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-x | git-prompt.sh | 6 | ||||
-rw-r--r-- | index.txt | 7 |
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 @@ -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] |