git prompt: better check for git stashes

When you run "git gc":

 - .git/refs/stash is deleted
 - .git/logs/refs/stash is kept intact
This commit is contained in:
Charles Gould 2020-04-09 16:17:31 -05:00 committed by Johannes Altmanninger
parent af5a9cf88e
commit 8029f15f1f

View file

@ -414,7 +414,7 @@ function fish_git_prompt --description "Prompt function for Git"
end
if set -q __fish_git_prompt_showstashstate
and test -r $git_dir/refs/stash
and test -r $git_dir/logs/refs/stash
set s $___fish_git_prompt_char_stashstate
end