Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lvv/git-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lvv committed May 12, 2011
2 parents c3d5e2f + a68fd80 commit 4878a77
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions git-prompt.sh
Expand Up @@ -444,6 +444,17 @@ parse_git_status() {
s/^# unmerged: '"$file_regex"'/ [[ \" ${modified_files[*]} \" =~ \" \1 \" ]] || modified_files[${#modified_files[@]}]=\"\1\"/p
}
/^# Changes not staged for commit:/,/^# [A-Z]/ {
s/^# Changes not staged for commit:/modified=modified;/p
s/^# modified: '"$file_regex"'/ [[ \" ${modified_files[*]} \" =~ \" \1 \" ]] || modified_files[${#modified_files[@]}]=\"\1\"/p
s/^# unmerged: '"$file_regex"'/ [[ \" ${modified_files[*]} \" =~ \" \1 \" ]] || modified_files[${#modified_files[@]}]=\"\1\"/p
}
/^# Unmerged paths:/,/^[^#]/ {
s/^# Unmerged paths:/modified=modified;/p
s/^# both modified:\s*'"$file_regex"'/ [[ \" ${modified_files[*]} \" =~ \" \1 \" ]] || modified_files[${#modified_files[@]}]=\"\1\"/p
}
/^# Untracked files:/,/^[^#]/{
s/^# Untracked files:/untracked=untracked;/p
s/^# '"$file_regex"'/ [[ \" ${untracked_files[*]} ${modified_files[*]} ${added_files[*]} \" =~ \" \1 \" ]] || untracked_files[${#untracked_files[@]}]=\"\1\"/p
Expand Down

0 comments on commit 4878a77

Please sign in to comment.