diff options
Diffstat (limited to 'contrib/conf/commit-msg')
-rwxr-xr-x | contrib/conf/commit-msg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/conf/commit-msg b/contrib/conf/commit-msg index f6e73d5cc..cc532921c 100755 --- a/contrib/conf/commit-msg +++ b/contrib/conf/commit-msg | |||
@@ -15,7 +15,7 @@ do | |||
15 | if echo $f | grep \src\/include\/.\*\.h\$ > /dev/null | 15 | if echo $f | grep \src\/include\/.\*\.h\$ > /dev/null |
16 | then | 16 | then |
17 | RET=1 | 17 | RET=1 |
18 | # Check if it has a ChangeLog line | 18 | # Check if it has a NEWS line |
19 | if cat $COMMIT_MSG_FILE | grep -i "^NEWS:\s[-,a-zA-Z][a-zA-Z]*" > /dev/null | 19 | if cat $COMMIT_MSG_FILE | grep -i "^NEWS:\s[-,a-zA-Z][a-zA-Z]*" > /dev/null |
20 | then | 20 | then |
21 | RET=0 | 21 | RET=0 |
@@ -24,10 +24,10 @@ do | |||
24 | fi | 24 | fi |
25 | done | 25 | done |
26 | 26 | ||
27 | # If no ChangeLog line found, abort | 27 | # If no NEWS line found, abort |
28 | if [ $RET = 1 ]; | 28 | if [ $RET = 1 ]; |
29 | then | 29 | then |
30 | echo "Your commit includes staged changes that indicate an API change which requires a ChangeLog line." | 30 | echo "Your commit includes staged changes that indicate an API change which requires a NEWS line." |
31 | else | 31 | else |
32 | echo "Your commit does not include API changes" | 32 | echo "Your commit does not include API changes" |
33 | fi | 33 | fi |