mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
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:
parent
af5a9cf88e
commit
8029f15f1f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue