]> granicus.if.org Git - zfs/commitdiff
Bump commit subject length to 72 characters
authorNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Tue, 8 Jan 2019 17:23:05 +0000 (12:23 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Jan 2019 17:23:05 +0000 (09:23 -0800)
There's not really a reason to keep the subject length so short,
since the reason to make it this short was for making nice renders
of a summary list of the git log. With 72 characters, this still
works out fine, so let's just raise it to that so that it's easier
to give slightly more descriptive change summaries.

Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Neal Gompa <ngompa@datto.com>
Closes #8250

.github/CONTRIBUTING.md
scripts/commitcheck.sh

index 32be3d4102e05630d87026199d22faf429a71aeb..1bd17bd93f2000f9bbda6e9bf7db5733fde0b3ad 100644 (file)
@@ -164,7 +164,7 @@ coding convention.
 ### Commit Message Formats
 #### New Changes
 Commit messages for new changes must meet the following guidelines:
-* In 50 characters or less, provide a summary of the change as the
+* In 72 characters or less, provide a summary of the change as the
 first line in the commit message.
 * A body which provides a description of the change. If necessary,
 please summarize important information such as why the proposed
index f377bb91284adaa953ea1bfa51df3d02eec3988e..2954b0fd727e1f85d83192231c8c7a56a8501e64 100755 (executable)
@@ -69,10 +69,10 @@ function new_change_commit()
 {
     error=0
 
-    # subject is not longer than 50 characters
-    long_subject=$(git log -n 1 --pretty=%s "$REF" | grep -E -m 1 '.{51}')
+    # subject is not longer than 72 characters
+    long_subject=$(git log -n 1 --pretty=%s "$REF" | grep -E -m 1 '.{73}')
     if [ -n "$long_subject" ]; then
-        echo "error: commit subject over 50 characters"
+        echo "error: commit subject over 72 characters"
         error=1
     fi