mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 23:45:11 +08: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
@ -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…
x
Reference in New Issue
Block a user