From e8f90e6c4c7b2c66f942e4fecd13b76e895cf4b6 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 11 Jul 2009 16:16:52 +0300 Subject: -- parent dir is back --- git-prompt.sh | 9 --------- 1 file changed, 9 deletions(-) (limited to 'git-prompt.sh') 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 -- cgit v1.2.3