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.
1 parent 74444e6 commit 5a43c17Copy full SHA for 5a43c17
functions/geometry_git
@@ -28,7 +28,7 @@ geometry_git_branch() {
28
geometry_git_status() {
29
command git rev-parse --git-dir > /dev/null 2>&1 || return
30
31
- git diff-index --quiet HEAD \
+ git diff-index --quiet HEAD 2> /dev/null \
32
&& [[ -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:-"⬡"}
0 commit comments