Relax Gitler on commit headline length (#1031)
The guide we are referring to ( https://chris.beams.io/posts/git-commit/ ) says: shoot for 50 characters, but consider 72 the hard limit so let Gitler consider 72 the hard limit (instead of 50).
This commit is contained in:
committed by
Patrick Fallberg
parent
af3452f91c
commit
d9059d7bd5
+2
-2
@@ -9,9 +9,9 @@ echo "No subjects with leading lower case characters<br>" > leading_lowercases.t
|
||||
echo "No subjects with trailing periods<br>" > trailing_periods.txt
|
||||
echo "No body lines are too wide<br>" > too_long_body_lines.txt
|
||||
|
||||
too_long_subjects=`awk 'length > 50' subjects.txt`
|
||||
too_long_subjects=`awk 'length > 72' subjects.txt`
|
||||
if [ -n "$too_long_subjects" ]; then
|
||||
echo "<b>Commit subjects that are too wide (>50 characters):</b>" > too_long_subjects.txt
|
||||
echo "<b>Commit subjects that are too wide (>72 characters):</b>" > too_long_subjects.txt
|
||||
echo "$too_long_subjects" >> too_long_subjects.txt
|
||||
sed -i -e 's/$/<br>/' too_long_subjects.txt
|
||||
result=1
|
||||
|
||||
Reference in New Issue
Block a user