mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:03:41 +08:00
fish_git_prompt: Always allow for displaying stashstate
This wasn't added to the prompt status order, so it was computed and then not used for the informative prompt. We still check later if we should compute it, so this is harmless if showstashstate is unset. Fixes #7136.
This commit is contained in:
parent
92b987145e
commit
894ec3dfd4
|
@ -529,10 +529,7 @@ function __fish_git_prompt_dirty --description "fish_git_prompt helper, tells wh
|
|||
return $os
|
||||
end
|
||||
|
||||
set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untrackedfiles
|
||||
if set -q __fish_git_prompt_showstashstate
|
||||
set -a ___fish_git_prompt_status_order stashstate
|
||||
end
|
||||
set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untrackedfiles stashstate
|
||||
|
||||
function __fish_git_prompt_informative_status
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user