diff options
Diffstat (limited to 'git')
-rwxr-xr-x | git/template/hooks/prepare-commit-msg.awk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git/template/hooks/prepare-commit-msg.awk b/git/template/hooks/prepare-commit-msg.awk index 800e2220..2ee8d3a9 100755 --- a/git/template/hooks/prepare-commit-msg.awk +++ b/git/template/hooks/prepare-commit-msg.awk @@ -15,6 +15,9 @@ 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 |