mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
Revert "git prompt: Show stagedstate without dirtystate"
After further thinking, showing this now, by default, without a nice way to turn it off isn't great.
This reverts commit 573fed7798.
This commit is contained in:
@@ -38,7 +38,7 @@ complete -C'git add '
|
||||
git checkout -b newbranch >/dev/null 2>&1
|
||||
fish_git_prompt
|
||||
echo # the git prompt doesn't print a newline
|
||||
#CHECK: (newbranch +)
|
||||
#CHECK: (newbranch)
|
||||
|
||||
set -g __fish_git_prompt_show_informative_status 1
|
||||
fish_git_prompt
|
||||
@@ -49,8 +49,10 @@ set -e __fish_git_prompt_show_informative_status
|
||||
# Confirm the mode changes back
|
||||
fish_git_prompt
|
||||
echo
|
||||
#CHECK: (newbranch +)
|
||||
#CHECK: (newbranch)
|
||||
|
||||
# (for some reason stagedstate is only shown with showdirtystate?)
|
||||
set -g __fish_git_prompt_showdirtystate 1
|
||||
git add foo
|
||||
fish_git_prompt
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user