mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08:00
fish_git_prompt: Add separator even if state is empty
This would leave off the separator if the repo was just bare or had upstream difference, but no status (e.g. dirty) applied. Fixes #10175
This commit is contained in:
parent
7d10a72bb3
commit
4c1e25b141
|
@ -388,7 +388,9 @@ function fish_git_prompt --description "Prompt function for Git"
|
|||
end
|
||||
|
||||
# Formatting
|
||||
if test -n "$f"
|
||||
# If we have state, a bare repo or upstream difference, add a separator.
|
||||
# merging is already separate.
|
||||
if test -n "$f$c$p"
|
||||
set f "$space$f"
|
||||
end
|
||||
set -l format $argv[1]
|
||||
|
|
Loading…
Reference in New Issue
Block a user