mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Verbose and non-verbose stashes are now mutually exclusive
This commit is contained in:
parent
40c597abe1
commit
f812a27277
@ -286,14 +286,14 @@ function __bobthefish_git_dirty_verbose -S -d 'Print a more verbose dirty state
|
||||
end
|
||||
|
||||
function __bobthefish_git_stashed -S -d 'Print the stashed state for the current branch'
|
||||
command git rev-parse --verify --quiet refs/stash >/dev/null
|
||||
if [ "$theme_display_git_stashed_verbose" = 'yes' ]
|
||||
set -l stashed (command git rev-list --walk-reflogs --count refs/stash 2>/dev/null)
|
||||
or return
|
||||
|
||||
echo -n "$git_stashed_glyph"
|
||||
if [ "$theme_display_git_stashed_verbose" = 'yes' ]
|
||||
command git rev-list --walk-reflogs --count refs/stash 2>/dev/null
|
||||
echo -n "$git_stashed_glyph$stashed"
|
||||
else
|
||||
command git rev-parse --verify --quiet refs/stash >/dev/null; and echo -n "$git_stashed_glyph"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user