mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Test displaying only stash count (#9573)
This commit is contained in:
parent
5aaa1e69bc
commit
ef3516ecdf
@ -146,6 +146,32 @@ fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch +)
|
||||
|
||||
set -e __fish_git_prompt_showdirtystate
|
||||
|
||||
# Test displaying only stash count
|
||||
set -g __fish_git_prompt_show_informative_status 1
|
||||
set -g __fish_git_prompt_showstashstate 1
|
||||
set -g __fish_git_prompt_status_order stashstate
|
||||
set -g ___fish_git_prompt_char_stashstate ''
|
||||
set -g ___fish_git_prompt_char_cleanstate ''
|
||||
|
||||
git commit -m 'Init' >/dev/null 2>&1
|
||||
echo 'changed' > foo
|
||||
git stash >/dev/null 2>&1
|
||||
fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch|1)
|
||||
|
||||
git stash pop >/dev/null 2>&1
|
||||
fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch)
|
||||
|
||||
set -e __fish_git_prompt_show_informative_status
|
||||
set -e __fish_git_prompt_showstashstate
|
||||
set -e __fish_git_prompt_status_order
|
||||
set -e ___fish_git_prompt_char_stashstate
|
||||
set -e ___fish_git_prompt_char_cleanstate
|
||||
|
||||
|
||||
# Turn on everything and verify we correctly ignore sus config files.
|
||||
|
Loading…
x
Reference in New Issue
Block a user