mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user