mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00: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
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue