blob: 69883fcf80cbe574c5a653ff40d1a6ae617a198b (
plain) (
blame)
1
2
3
4
5
6
7
8
|
# .git/hooks/pre-commit
#!/bin/bash
for file in $(git diff --cached --name-only | grep -E '\.org$'); do
if ! grep -q "^#\+TITLE:" "$file"; then
echo "Error: $file is missing a TITLE."
exit 1
fi
done
|