summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Delfino <gdelfino@gmail.com>2010-07-04 12:30:20 +0800
committerLeonid Volnitsky <leonid@volnitsky.com>2010-08-13 12:39:33 +0800
commitc9a2fdb4adf4cc87beb77a4179873a623ae12b3b (patch)
tree1c34225b2f5ef7140a471f22a7aea94ae068df3d
parentMerge branch 'master' of github.com:lvv/git-prompt (diff)
downloadgit-prompt-c9a2fdb4adf4cc87beb77a4179873a623ae12b3b.tar.gz
git-prompt-c9a2fdb4adf4cc87beb77a4179873a623ae12b3b.tar.bz2
git-prompt-c9a2fdb4adf4cc87beb77a4179873a623ae12b3b.zip
File lists now work under Mac OS X
In the file_regex, the ? (for zero or one) repetitions was not being recognized by the sed included in my Mac OS X 10.6 machine. This is now fixed.
-rwxr-xr-xgit-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 88db6bc..f951623 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -414,7 +414,7 @@ parse_git_status() {
parse_git_complete
########################################################## GIT STATUS
- file_regex='\([^/]*\/\?\).*'
+ file_regex='\([^/]*\/\{0,1\}\).*'
added_files=()
modified_files=()
untracked_files=()