aboutsummaryrefslogtreecommitdiff
path: root/.dev-suite
diff options
context:
space:
mode:
authorMichael Gattozzi <mgattozzi@gmail.com>2019-11-22 15:52:31 -0500
committerMichael Gattozzi <mgattozzi@gmail.com>2019-11-22 15:52:31 -0500
commit7f3d02a01bc5174cd9e2a4b1c44be64534cb1a37 (patch)
treeaaa99c265ea78293bb225bc8ce12ded124a59b4e /.dev-suite
parent98e0a821f819fe371f8f642ece6500c40d374bcc (diff)
Add commit message linting hook to the repo
This adds a commit to handle git commit linting to enforce style by not allowing less than 10 or more than 50 chars for titles and less than or equal to 72 chars for the body. Chars are measured in number of graphemes as 50 chars represented in the terminal is what we want to use not 50 bytes. This will eventually be an installable hook for end users if they want it.
Diffstat (limited to '.dev-suite')
-rwxr-xr-x.dev-suite/hooked/commit-msg5
1 files changed, 4 insertions, 1 deletions
diff --git a/.dev-suite/hooked/commit-msg b/.dev-suite/hooked/commit-msg
index efcbaec..cc072bf 100755
--- a/.dev-suite/hooked/commit-msg
+++ b/.dev-suite/hooked/commit-msg
@@ -1 +1,4 @@
-#! /bin/bash \ No newline at end of file
+#! /bin/bash
+
+# Check that the commit message is up to spec
+hooked-commit-msg $@