mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 13:11:15 -03:00
fish_git_prompt: add diverged upstream char option
Currently, `__fish_git_prompt_char_upstream_diverged` can only be set to a combination of `__fish_git_prompt_char_upstream_behind` and `__fish_git_prompt_char_upstream_ahead`s plain-text options. Adding a combination of the less-plain character options gives users more choice. Closes #11817
This commit is contained in:
committed by
Johannes Altmanninger
parent
b37b57781b
commit
b8f704e3c4
@@ -110,7 +110,7 @@ Variables used with ``showupstream`` (also implied by informative status):
|
||||
|
||||
- ``$__fish_git_prompt_char_upstream_ahead`` (>, ↑) - the character for the commits this repository is ahead of upstream
|
||||
- ``$__fish_git_prompt_char_upstream_behind`` (<, ↓) - the character for the commits this repository is behind upstream
|
||||
- ``$__fish_git_prompt_char_upstream_diverged`` (<>) - the symbol if this repository is both ahead and behind upstream
|
||||
- ``$__fish_git_prompt_char_upstream_diverged`` (<>, ↓↑) - the symbol if this repository is both ahead and behind upstream
|
||||
- ``$__fish_git_prompt_char_upstream_equal`` (=) - the symbol if this repo is equal to upstream
|
||||
- ``$__fish_git_prompt_char_upstream_prefix`` ('')
|
||||
- ``$__fish_git_prompt_color_upstream``
|
||||
|
||||
@@ -586,7 +586,7 @@ function __fish_git_prompt_validate_chars --description "fish_git_prompt helper,
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_untrackedfiles '%' '…'
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_upstream_ahead '>' '↑'
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_upstream_behind '<' '↓'
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_upstream_diverged '<>'
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_upstream_diverged '<>' '↓↑'
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_upstream_equal '='
|
||||
__fish_git_prompt_set_char __fish_git_prompt_char_upstream_prefix ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user