summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wührer <def@gmx.at>2025-06-06 19:20:40 +0200
committerDavid Wührer <def@gmx.at>2025-06-06 19:20:40 +0200
commit2366d7fe1cad62ac31a7e643c8391d12169cb355 (patch)
treee783f0800cfebebf3a27f40cea6b20a9429be769
parentc9e71e7c788aaa5954e5e46c72a03b527761d7e7 (diff)
slightly optimise giteval
-rwxr-xr-xbin/giteval2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/giteval b/bin/giteval
index 48d35a8..bd3c643 100755
--- a/bin/giteval
+++ b/bin/giteval
@@ -1,7 +1,7 @@
#!/bin/bash
b=$(git branch --show-current 2> /dev/null) && {
- case $(env - git status --no-ahead-behind | tail -n1) in
+ case $(env - git --no-optional-locks status --no-ahead-behind | tail -n1) in
'nothing to commit'*)
printf '\[\e[32m\][%s]\[\e[0m\]' "$b"
;; 'no changes added to commit'*)