mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +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
|
echo
|
||||||
#CHECK: (newbranch +)
|
#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.
|
# Turn on everything and verify we correctly ignore sus config files.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user