From 9eac46cfeddc65938b3cc946629a9c3d93ac35ee Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 22 Aug 2023 10:53:12 -0400 Subject: Add a commit-msg hook lint and various other cleanups Turns out that gitlint by default enforces the exact commit-msg format that I like to use. I'm enabling this because even I write poor commit messages sometimes, and looking back on my commits from even a few days ago is sometimes not very helpful. I also made some minor comment and nix changes that I noticed while reviewing my work from the last few days. --- Biz/Ide/hooks/commit-msg | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 Biz/Ide/hooks/commit-msg (limited to 'Biz/Ide/hooks') diff --git a/Biz/Ide/hooks/commit-msg b/Biz/Ide/hooks/commit-msg new file mode 100755 index 0000000..64e400d --- /dev/null +++ b/Biz/Ide/hooks/commit-msg @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +gitlint --ignore-stdin --staged --msg-filename "$1" run-hook -- cgit v1.2.3