diff --git a/tests/checks/git.fish b/tests/checks/git.fish index f5b337a1a..b4aa2ae90 100644 --- a/tests/checks/git.fish +++ b/tests/checks/git.fish @@ -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.