summaryrefslogtreecommitdiff
path: root/Omni/Ide
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Ide')
-rwxr-xr-xOmni/Ide/hooks/commit-msg3
1 files changed, 2 insertions, 1 deletions
diff --git a/Omni/Ide/hooks/commit-msg b/Omni/Ide/hooks/commit-msg
index c15b4a1..c6197f9 100755
--- a/Omni/Ide/hooks/commit-msg
+++ b/Omni/Ide/hooks/commit-msg
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
temp=$(mktemp)
-fmt -w 72 -u "$1" > "$temp"
+# strip everything after >8 cut line, then strip comment lines
+sed '/.*>8.*/,$d; /^#/d' "$1" | fmt -w 72 -u > "$temp"
mv "$temp" "$1"
if ! gitlint --ignore-stdin --staged --msg-filename "$1" run-hook; then
backup="$CODEROOT"/.git/COMMIT_EDITMSG.backup