Skip to content

Commit

Permalink
Merge pull request ohmyzsh#464 from bkonkle/patch-1
Browse files Browse the repository at this point in the history
Minor corrections to deletion detection in git_prompt_status
  • Loading branch information
robbyrussell committed Jul 31, 2011
2 parents 52a99d9 + 6774fb3 commit a738ca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/git.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ git_prompt_status() {
if $(echo "$INDEX" | grep '^R ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS"
fi
if $(echo "$INDEX" | grep '^D ' &> /dev/null); then
if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
elif $(echo "$INDEX" | grep '^AD ' &> /dev/null); then
STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
fi
if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then
Expand Down

0 comments on commit a738ca9

Please sign in to comment.