aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <>2026-02-10 00:00:00 +0000
committerNicholas Johnson <>2026-02-10 00:00:00 +0000
commitcdb9428992b80619fc195d066f142dde78e286051d97f97d291449339eeb6eff (patch)
tree3e28ad8672f3c6527fdec2d433e70a3d25bcc04b1836bdc1a73e53b3551dee38
parent218b12f48ccefd6649841beb7d1f97b168496f9bcaa92dc9f692dc53c72a0fdb (diff)
downloadjournal-cdb9428992b80619fc195d066f142dde78e286051d97f97d291449339eeb6eff.tar.gz
journal-cdb9428992b80619fc195d066f142dde78e286051d97f97d291449339eeb6eff.zip
Exclude non-content files from grammar check
-rwxr-xr-xhooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
index 317ed48..1de33ca 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -6,7 +6,7 @@ git annex pre-commit .
# check grammar of staged Markdown files
check_grammar() {
# get list of staged Markdown files (added or modified)
- staged_files=$(git diff --cached --name-only --diff-filter=AM | grep '\.md$')
+ staged_files=$(git diff --cached --name-only --diff-filter=AM | grep '^content/.*\.md$')
[ -z "$staged_files" ] && return 0