From 7f3d02a01bc5174cd9e2a4b1c44be64534cb1a37 Mon Sep 17 00:00:00 2001 From: Michael Gattozzi Date: Fri, 22 Nov 2019 15:52:31 -0500 Subject: 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. --- .dev-suite/hooked/commit-msg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.dev-suite') 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 $@ -- cgit v1.2.3