nvmm: Improve nvmm_return_needed() by using nvmm_break_wanted()
[dragonfly.git] / tools / commit-msg
1 #!/bin/sh
2 #
3 # This commit-msg hook tries to guess whether the current commit addresses
4 # an existing bug based on a number of keywords in the commit message and
5 # reminds the committer of backporting it.
6
7 grep -v '^#' "$1" |
8         grep -Eiq 'CVE|vulnerability|fix|panic|bug|Reported-by|Dragonfly-bug'
9 if [ $? -eq 0 ]; then
10         echo ''
11         echo 'NOTE: This commit seems to fix an existing issue;' \
12              'please consider backporting it to the current stable release.'
13         echo ''
14 fi
15
16 exit 0