diff options
Diffstat (limited to 'git')
-rwxr-xr-x | git/template/hooks/prepare-commit-msg.awk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/template/hooks/prepare-commit-msg.awk b/git/template/hooks/prepare-commit-msg.awk index 3be115b1..2fe43c5b 100755 --- a/git/template/hooks/prepare-commit-msg.awk +++ b/git/template/hooks/prepare-commit-msg.awk @@ -16,12 +16,12 @@ BEGIN { next } -# This line is blank, or a comment; reset the branch -!NF || $1 ~ /^#/ { branch = 0 } - # Commit message subject patterns to skip go here; be as precise as you can $0 == " Bump VERSION" { next } # Skip version number bumps +# This line is blank, or a comment; reset the branch +!NF || $1 ~ /^#/ { branch = 0 } + # Don't emit consecutive blanks NF { blank = 0 } !NF && blank++ { next } |