From: Karl Meakin <[email protected]>
Add a section for Git commit messages to the `.editorconfig` file, so that
editors with EditorConfig
support will automatically format commit messages according to the GNU style.
ChangeLog:
* .editorconfig (COMMIT_EDITMSG): New section.
---
.editorconfig | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/.editorconfig b/.editorconfig
index 4d53220ba8ed..ca1d3be35958 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -30,6 +30,13 @@ end_of_line = lf
insert_final_newline = true
tab_width = 8
+# Git commit messages
+[COMMIT_EDITMSG]
+indent_size = 8
+indent_style = tab
+max_line_length = 100
+trim_trailing_whitespace = true
+
# EditorConfig files
[.editorconfig]
charset = utf-8
--
2.54.0