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