Skip to content

Commit

Permalink
Merge branch 'rr/prompt-revert-head'
Browse files Browse the repository at this point in the history
The prompt string generator did not notice when we are in a middle
of a "git revert" session.

* rr/prompt-revert-head:
  bash: teach __git_ps1 about REVERT_HEAD
  • Loading branch information
Junio C Hamano committed Apr 3, 2013
2 parents 8054b9a + 3ee4452 commit 5ab3e4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/completion/git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ __git_ps1 ()
r="|MERGING"
elif [ -f "$g/CHERRY_PICK_HEAD" ]; then
r="|CHERRY-PICKING"
elif [ -f "$g/REVERT_HEAD" ]; then
r="|REVERTING"
elif [ -f "$g/BISECT_LOG" ]; then
r="|BISECTING"
fi
Expand Down

0 comments on commit 5ab3e4c

Please sign in to comment.