use index for git staged status

hashtag premature optimizations
pull/135/head
Justin Hileman 6 years ago
parent e067bba8a4
commit da2cd2eac4

@ -720,7 +720,7 @@ function __bobthefish_prompt_git -S -a current_dir -d 'Display the actual git st
end
end
set -l staged (command git diff --cached --no-ext-diff --quiet --exit-code ^/dev/null; or echo -n "$__bobthefish_git_staged_glyph")
set -l staged (command git diff-index --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)

Loading…
Cancel
Save