summaryrefslogtreecommitdiff
path: root/.githooks
diff options
context:
space:
mode:
authorHenry J. Webster <hwebs@hwebs.info>2026-10-31 13:33:43 -0500
committerHenry J. Webster <hwebs@hwebs.info>2026-10-31 13:33:43 -0500
commitfc667669efbffdaa93e10a4ccef9142f1aff96ab (patch)
tree20ab72cc14ddff255361040168de348624ba5ba9 /.githooks
parentfac36c23ec8fd10b0bf8cf76647c830046f1d0c2 (diff)
re-organize directories
Diffstat (limited to '.githooks')
-rwxr-xr-x.githooks/pre-commit5
1 files changed, 5 insertions, 0 deletions
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
new file mode 100755
index 0000000..5ba733d
--- /dev/null
+++ b/.githooks/pre-commit
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -eu
+
+git ls-files -z --cached -- '*.caddy' 'Caddyfile' '*/Caddyfile' |
+ xargs -0 -r caddy fmt --overwrite \ No newline at end of file