summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-05-13 08:48:42 -0400
committerMatt Hunter <m@lfurio.us>2026-05-13 08:48:42 -0400
commitb41a90b58fe974cf3e2418c1b19c505d8d187371 (patch)
tree66a589aa33d96df29c4197e5e4f7ebcbd4a5997e
parent2fb1cc17f0c57f3f482791390e6c81eb5f906bc9 (diff)
downloadgit-sonar-b41a90b58fe974cf3e2418c1b19c505d8d187371.tar.gz
git-sonar-b41a90b58fe974cf3e2418c1b19c505d8d187371.zip
Reword some comments
Signed-off-by: Matt Hunter <m@lfurio.us>
-rwxr-xr-xgit-sonar8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-sonar b/git-sonar
index 4da43f8..e09d6f4 100755
--- a/git-sonar
+++ b/git-sonar
@@ -60,16 +60,16 @@ if [ $# -ne 0 ]; then
fi
# git-precheck will determine whether we are currently inside a git repository,
-# as well as whether the repo is in any abnormal state. If outside a repo, exit
-# and do not process any remainder of this script.
+# as well as whether the repo has any ongoing operation in-progress.
+# If outside a repo, exit and do not process any remainder of this script.
git-precheck --quiet --ignore-dirty --ignore-untracked >/dev/null 2>&1
precheck_status=$?
[ "$precheck_status" -ge 4 ] && exit 0
# Initialize configuration variables and set default values if not provided by
# the environment. Note: ANSI escape codes (and other unprintable sequences)
-# must be enclosed within a \001 byte (ASCII start of heading) at the start and
-# a \002 byte (ASCII start of text) at the end - some shells rely on this to
+# must be enclosed by a \001 byte (ASCII start of heading) at the start and a
+# \002 byte (ASCII start of text) at the end - some shells rely on this to
# correctly track the length of their rendered prompt.
COLOR_GRAY="\001\\033[1;30m\002"
COLOR_RED="\001\\033[1;31m\002"