We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a3129a + 280ee09 commit ca99295Copy full SHA for ca99295
functions/geometry_git
@@ -28,8 +28,8 @@ geometry_git_branch() {
28
geometry_git_status() {
29
command git rev-parse --git-dir > /dev/null 2>&1 || return
30
31
- [[ -z "$(git status --porcelain --ignore-submodules)" ]] \
32
- && [[ -z "$(git ls-files --others --modified --exclude-standard \"$(git rev-parse --show-toplevel)\")" ]] \
+ git diff-index --quiet HEAD \
+ && [[ -z "$(git status --porcelain --ignore-submodules)" ]] \
33
&& ansi ${GEOMETRY_GIT_COLOR_CLEAN:-green} ${GEOMETRY_GIT_SYMBOL_CLEAN:-"⬢"} \
34
|| ansi ${GEOMETRY_GIT_COLOR_DIRTY:-red} ${GEOMETRY_GIT_SYMBOL_DIRTY:-"⬡"}
35
}
0 commit comments