summaryrefslogtreecommitdiffstats
path: root/git-precheck
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-05-10 03:05:00 -0400
committerMatt Hunter <m@lfurio.us>2026-05-10 04:47:01 -0400
commit1f17dcae1373968bed8c6e904c905566a45204ec (patch)
tree41d03d9e8677a2e9e2dd4cb71434007f8825a562 /git-precheck
parente20e27ffa8a048068fd8d66b2b6a5bc90d91452b (diff)
downloadgit-sonar-1f17dcae1373968bed8c6e904c905566a45204ec.tar.gz
git-sonar-1f17dcae1373968bed8c6e904c905566a45204ec.zip
precheck: Always use lower-case messages
Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to '')
-rwxr-xr-xgit-precheck6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-precheck b/git-precheck
index 0602ecd..0c6bc98 100755
--- a/git-precheck
+++ b/git-precheck
@@ -61,7 +61,7 @@ untracked=""
# If outside repo, always exit immediately.
if ! [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then
- [ -z "$quiet" ] && printf '%bNot inside a git work tree%b\n' "$CS" "$CE"
+ [ -z "$quiet" ] && printf '%bnot inside a git work tree%b\n' "$CS" "$CE"
exit 4
fi
@@ -88,13 +88,13 @@ if [ -n "$opt_dirty" ] || [ -n "$opt_untracked" ]; then
if [ -n "$opt_dirty" ] && printf '%s' "$git_status" | grep -qvE '^\?\? '; then
[ -n "$quiet" ] && exit 2
- printf '%bModified files detected%b\n' "$CS" "$CE"
+ printf '%bmodified files detected%b\n' "$CS" "$CE"
dirty="true"
fi
if [ -n "$opt_untracked" ] && printf '%s' "$git_status" | grep -qE '^\?\? '; then
[ -n "$quiet" ] && exit 1
- printf '%bUntracked files detected%b\n' "$CS" "$CE"
+ printf '%buntracked files detected%b\n' "$CS" "$CE"
untracked="true"
fi
fi