mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 18:55:11 +08:00
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:
parent
914f83cb10
commit
5a7b85adc7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user