summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2009-07-11 16:16:52 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2009-07-11 16:16:52 +0300
commite8f90e6c4c7b2c66f942e4fecd13b76e895cf4b6 (patch)
tree74a1babbc6f79c2b8770b0f77486ad48fbcdf16f /git-prompt.sh
parentdon't show all files state in subdir, only show shubdir itself (diff)
downloadgit-prompt-e8f90e6c4c7b2c66f942e4fecd13b76e895cf4b6.tar.gz
git-prompt-e8f90e6c4c7b2c66f942e4fecd13b76e895cf4b6.tar.bz2
git-prompt-e8f90e6c4c7b2c66f942e4fecd13b76e895cf4b6.zip
-- parent dir is back
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh9
1 files changed, 0 insertions, 9 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index c239637..1dfecc5 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -376,8 +376,6 @@ parse_git_status() {
s/^nothing to commit (working directory clean)/clean=clean/p
s/^# Initial commit/init=init/p
- s/^# \.\./: SKIP/
-
/^# Untracked files:/,/^[^#]/{
s/^# Untracked files:/untracked=untracked;/p
s/^# \([^/]*\/\?\).*/untracked_files[${#untracked_files[@]}+1]=\\"\1\\"/p
@@ -385,20 +383,13 @@ parse_git_status() {
/^# Changed but not updated:/,/^# [A-Z]/ {
s/^# Changed but not updated:/modified=modified;/p
- s/^# modified: \.\./: SKIP/
s/^# modified: \([^/]*\/\?\).*/modified_files[${#modified_files[@]}+1]=\"\1\"/p
- s/^# unmerged: \.\./: SKIP/
s/^# unmerged: \([^/]*\/\?\).*/modified_files[${#modified_files[@]}+1]=\"\1\"/p
}
/^# Changes to be committed:/,/^# [A-Z]/ {
s/^# Changes to be committed:/added=added;/p
- s/^# modified: \.\./: SKIP/
- s/^# new file: \.\./: SKIP/
- s/^# renamed:[^>]*> \.\./: SKIP/
- s/^# copied:[^>]*> \.\./: SKIP/
-
s/^# modified: \([^/]*\/\?\).*/added_files[${#added_files[@]}+1]=\"\1\"/p
s/^# new file: \([^/]*\/\?\).*/added_files[${#added_files[@]}+1]=\"\1\"/p
s/^# renamed:[^>]*> \([^/]*\/\?\).*/added_files[${#added_files[@]}+1]=\"\1\"/p