mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-25 12:45:14 +08:00
git-prompt: Move status_order to near informative_status
It's easy to forget the definition of ___fish_git_prompt_status_order when there are dozens of lines between where it is defined and where it is used.
This commit is contained in:
parent
c82dbaca8b
commit
92d2e681d6
@ -127,8 +127,6 @@
|
||||
# stagedstate Defaults to green
|
||||
# flags Defaults to --bold blue
|
||||
|
||||
set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untrackedfiles
|
||||
|
||||
function __fish_git_prompt_show_upstream --description "Helper function for __fish_git_prompt"
|
||||
set -l show_upstream $__fish_git_prompt_showupstream
|
||||
set -l svn_prefix # For better SVN upstream information
|
||||
@ -415,6 +413,8 @@ function __fish_git_prompt_dirty --description "__fish_git_prompt helper, tells
|
||||
echo $dirty
|
||||
end
|
||||
|
||||
set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untrackedfiles
|
||||
|
||||
function __fish_git_prompt_informative_status
|
||||
|
||||
set -l changedFiles (git diff --name-status | cut -c 1-2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user