From e3d4545f746c902ea1e2415f33a754076bcf8daa Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Wed, 21 Feb 2018 09:56:53 -0800 Subject: [PATCH] Nope. That one didn't work in empty repos. Oh well. --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 852996c..be4ee2a 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -730,7 +730,7 @@ function __bobthefish_prompt_git -S -a current_dir -d 'Display the actual git st end end - set -l staged (command git diff-index --cached --no-ext-diff --quiet --exit-code HEAD ^/dev/null; or echo -n "$__bobthefish_git_staged_glyph") + set -l staged (command git diff --cached --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_staged_glyph") set -l stashed (command git rev-parse --verify --quiet refs/stash >/dev/null; and echo -n "$__bobthefish_git_stashed_glyph") set -l ahead (__bobthefish_git_ahead)