git_prompt: use REVERT_HEAD

git revert was taught to revert multiple commits, and it stores it
branch information in REVERT_HEAD just like the other *_HEAD files.

based on git.git 3ee4452: bash: teach __git_ps1 about REVERT_HEAD
This commit is contained in:
Brian Gernhardt 2013-07-03 00:43:27 -04:00
parent 914f83cb10
commit 5a7b85adc7

View file

@ -468,6 +468,8 @@ function __fish_git_prompt_operation_branch_bare --description "__fish_git_promp
set operation "|MERGING"
else if test -f $git_dir/CHERRY_PICK_HEAD
set operation "|CHERRY-PICKING"
else if test -f $git_dir/REVERT_HEAD
set operation "|REVERTING"
else if test -f $git_dir/BISECT_LOG
set operation "|BISECTING"
end