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:
Brian Gernhardt 2013-07-26 20:58:41 -04:00
parent c82dbaca8b
commit 92d2e681d6

View file

@ -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)